1
0
Fork 0

Idention typo

main
Kim Huebel 4 years ago
parent fd309ddb91
commit 9e064d90c1

@ -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")

Loading…
Cancel
Save