Added line break to log

This commit is contained in:
Maximilian Giller 2021-12-03 18:00:02 +01:00
parent 4673cd67f4
commit 29434c3338

View file

@ -98,7 +98,7 @@ def change_cb(countChange: int, directionState: Dict):
try: try:
with open(LOG_FILE_PATH, 'a') as f: with open(LOG_FILE_PATH, 'a') as f:
f.write(json.dumps(data, default=str)) f.write(json.dumps(data, default=str) + "\n")
except Exception as ex: except Exception as ex:
logging.exception(f'Unable to write log file. {ex}') logging.exception(f'Unable to write log file. {ex}')