Skip to content

Commit

Permalink
log result url
Browse files Browse the repository at this point in the history
  • Loading branch information
pyjopeko committed Jun 14, 2024
1 parent 53058cc commit ee02383
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion host_app/flask_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ def run_module_function(deployment_id, module_name, function_name, filename=None
wasm_queue.put(entry)

# Log the result of the execution.
get_logger(request).debug("Execution result: %r", entry.result, extra={"request": entry})
get_logger(request).debug("Execution result: %r", entry.result[0], extra={"request": entry})
if entry.result[1] is not None:
get_logger(request).debug("Result url: /module_results/%s/%s", entry.module_name, entry.result[1][0], extra={"request": entry})

# Return a link to this request's result (which could link further until
# some useful value is found).
Expand Down

0 comments on commit ee02383

Please sign in to comment.