1
0
Fork 0

Idention typo

This commit is contained in:
Kim Huebel 2020-11-23 20:24:36 +00:00
parent fd309ddb91
commit 9e064d90c1

View file

@ -53,13 +53,13 @@ def view_log(websocket, path):
file_path = config['MMDVMHost']['Logdir']+config['MMDVMHost']['Prefix']+"-"+year+"-"+month+"-"+day+".log"
elif path == "/DAPNET":
file_path = config['DAPNETGateway']['Logdir']+config['DAPNETGateway']['Prefix']+"-"+year+"-"+month+"-"+day+".log"
if path == "/MMDVM" or path == "/DAPNET":
logging.info(file_path)
if not os.path.isfile(file_path):
raise ValueError('File not found', format(file_path))
with open(file_path, newline = '\n', encoding="utf8", errors='ignore') as f:
content = ''.join(deque(f))
content = conv.convert(content, full=False)
lines = content.split("\n")