cmd: use Logger.setLevel() (#56038)

Directly setting logger.level should never used as it does not clear the
isEnabledFor cache of the logger which breaks some tests.
This commit is contained in:
Benjamin Dauvergne 2021-08-14 14:55:25 +02:00
parent 7690321265
commit 5baffc8156
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def configure_sentry(config):
return
# get DEBUG level logs as breadcrumbs
logger.level = logging.DEBUG
logger.setLevel(logging.DEBUG)
sentry_logging = LoggingIntegration(
level=logging.DEBUG,