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:
parent
7690321265
commit
5baffc8156
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue