From 06a279abe6f54a9230a50c5d796815d136dfaf58 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 4 Jan 2023 10:57:34 +1100 Subject: [PATCH] Revert message logging changes in attempt to fix JSON decoder error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 590ef10..3985c70 100644 --- a/app.py +++ b/app.py @@ -37,7 +37,7 @@ def response_minify(response): def handle_message(data): current_time = datetime.now().replace( microsecond=0).isoformat() - print(f'{current_time} {data}') + print('' + current_time + ' ' + data) @app.route("/api/status", methods=['GET', 'POST'])