Skip to content

Commit

Permalink
Merge pull request #213 from GeoDerp/patch-2
Browse files Browse the repository at this point in the history
web_server.py,  info logger about passed runtime params
  • Loading branch information
davidusb-geek authored Mar 2, 2024
2 parents 7f559a3 + 2df4b7b commit 6f70ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/emhass/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f70ba8

Please sign in to comment.