Skip to content

Conversation

@nggit
Copy link
Owner

@nggit nggit commented Dec 10, 2025

Sometimes I want to set debug=False but with log_level='INFO' in production, instead of log_level='ERROR'.

So move some noise to DEBUG.

This is how the two are related, and how they behave.

debug log_level Behaviour
not set not set set log_level='INFO'
not set 'DEBUG' set log_level='DEBUG'
True not set set log_level='DEBUG' + will also show a traceback
True 'INFO' set log_level='INFO' + will also show a traceback

@sonarqubecloud
Copy link

@nggit nggit merged commit 9f67983 into main Dec 13, 2025
23 checks passed
@nggit nggit deleted the logging branch December 13, 2025 02:15
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