Idention typo
This commit is contained in:
parent
fd309ddb91
commit
9e064d90c1
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue