Skip to content

bpo-33606: improve logging performance when logger is disabled#7285

Merged
vsajip merged 1 commit intopython:masterfrom
timofurrer:issue-33606
Jun 1, 2018
Merged

bpo-33606: improve logging performance when logger is disabled#7285
vsajip merged 1 commit intopython:masterfrom
timofurrer:issue-33606

Conversation

@timofurrer
Copy link
Copy Markdown
Contributor

@timofurrer timofurrer commented May 31, 2018

There is a check in Logger.handle to check whether the logger is disabled or not. However, for normal logging via Logger.debug, Logger.info, etc it could already be checked in Logger.isEnabledFor() to improve the performance when the logger is disabled.

https://bugs.python.org/issue33606

There is a check in `Logger.handle` to check whether the logger is
disabled or not. However, for normal logging via `Logger.debug`,
`Logger.info`, etc it could already be checked in
`Logger.isEnabledFor()` to improve the performance when the logger
is disabled.
@vsajip vsajip merged commit 6e3ca64 into python:master Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants