From 2df4b7bb3e9e8a05f1ca01d4294d8268509e52e2 Mon Sep 17 00:00:00 2001 From: john whately <18461782+GeoDerp@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:01:55 +1030 Subject: [PATCH] web_server.py, info logger about passed runtime params --- src/emhass/web_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emhass/web_server.py b/src/emhass/web_server.py index 027056f3..b45b903b 100644 --- a/src/emhass/web_server.py +++ b/src/emhass/web_server.py @@ -97,6 +97,8 @@ def action_call(action_name): config_path, params = pickle.load(fid) runtimeparams = request.get_json(force=True) params = json.dumps(params) + if runtimeparams is not None and runtimeparams != '{}': + app.logger.info("Passed runtime parameters: " + runtimeparams) runtimeparams = json.dumps(runtimeparams) ActionStr = " >> Setting input data dict" app.logger.info(ActionStr)