bpo-33606: improve logging performance when logger is disabled by timofurrer · Pull Request #7285 · python/cpython (original) (raw)

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