Skip to content

Commit

Permalink
fix: log command that is being run
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Aug 15, 2024
1 parent 399cd28 commit 0a20df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions github_overlord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)()


Expand Down

0 comments on commit 0a20df5

Please sign in to comment.