Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually enable debug logs if requested #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hsmade
Copy link

@hsmade hsmade commented Dec 20, 2024

I noticed that when enabling debug logs, the level doesn't actually get set. This should fix that.

Description of your changes

Fixes #

I have:

… if requested

I noticed that when enabling debug logs, the level doesn't actually get set. This should fix that.
Signed-off-by: Wim Fournier <[email protected]>
@hsmade
Copy link
Author

hsmade commented Dec 20, 2024

Not sure why the DCO is failing here..

@@ -75,7 +75,7 @@ def dropper(logger, method_name, event_dict): # noqa: ARG001 # We need this si
structlog.processors.EventRenamer(to="msg"),
structlog.processors.JSONRenderer(),
],
wrapper_class=structlog.make_filtering_bound_logger(logging.INFO),
wrapper_class=structlog.make_filtering_bound_logger(logging.DEBUG if level == Level.DEBUG else logging.INFO),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should never reach here if level == Level.DEBUG, right? See lines 59-67 above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants