Skip to content

Commit

Permalink
Log keyword args on execute (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant authored Mar 7, 2024
1 parent 3508c35 commit 37a9b5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# jl.seval("using SciMLIntegration, PythonCall")

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)


def run(request, *, job_id):
Expand All @@ -28,6 +29,7 @@ def run(request, *, job_id):
# if request.engine == "ciemss":
operation_name = request.__class__.pyciemss_lib_function
kwargs = request.gen_pyciemss_args(job_id)
logger.info(f"{job_id} started with the following args: {kwargs}")
if len(operation_name) == 0:
raise Exception("No operation provided in request")
else:
Expand Down

0 comments on commit 37a9b5e

Please sign in to comment.