From 29434c3338285bba5e1ac0b14eb479a656b228f5 Mon Sep 17 00:00:00 2001 From: mgfcf Date: Fri, 3 Dec 2021 18:00:02 +0100 Subject: [PATCH] Added line break to log --- src/philips_hue_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/philips_hue_counter.py b/src/philips_hue_counter.py index 17e3ff2..f077f94 100644 --- a/src/philips_hue_counter.py +++ b/src/philips_hue_counter.py @@ -98,7 +98,7 @@ def change_cb(countChange: int, directionState: Dict): try: 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: logging.exception(f'Unable to write log file. {ex}')