Skip to content
Snippets Groups Projects
Commit a5474931 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

log: fix module determination

parent 6b9fa422
No related branches found
No related tags found
2 merge requests!14Improve logging,!8Draft: Resolve "Pre-Proc: incorporate tools for creating global setups"
...@@ -109,7 +109,7 @@ def log_arguments(): ...@@ -109,7 +109,7 @@ def log_arguments():
msg = f"Function '{func.__name__}' called with the following arguments: \n" msg = f"Function '{func.__name__}' called with the following arguments: \n"
for arg, value in non_none_args.items(): for arg, value in non_none_args.items():
msg += f" {arg}: {value} \n" msg += f" {arg}: {value} \n"
logging.getLogger(inspect.getmodule(func)).debug(msg) logging.getLogger(inspect.getmodule(func).__name__).debug(msg)
# Call the original function # Call the original function
return func(*args, **kwargs) return func(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment