diff --git a/github_overlord/utils.py b/github_overlord/utils.py index eca107f..f59eb84 100644 --- a/github_overlord/utils.py +++ b/github_overlord/utils.py @@ -60,8 +60,6 @@ def setup(): # clear thread-local context log.clear = structlog.contextvars.clear_contextvars # type: ignore - logger = log - configure_logger() log.debug("application setup") diff --git a/main.py b/main.py index 44b0b2a..1f7bc9c 100644 --- a/main.py +++ b/main.py @@ -17,8 +17,12 @@ def wrapper(*args, **kwargs): return wrapper +from github_overlord.utils import log + + def job(): for command in list(cli.commands.values()): + log.info("running command", command=command.name) handle_click_exit(command)()