From 40dbd562bc6890afa49ab69a65a6e5b878dff81f Mon Sep 17 00:00:00 2001 From: rgermain Date: Sat, 30 Sep 2023 09:16:28 +0200 Subject: [PATCH] tests: fix disabled logger --- casbin/util/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casbin/util/log.py b/casbin/util/log.py index 69055a1..cbf5fc4 100644 --- a/casbin/util/log.py +++ b/casbin/util/log.py @@ -52,4 +52,4 @@ def configure_logging(logging_config=None): def disabled_logging(): for logger_name in DEFAULT_LOGGING["loggers"].keys(): - logging.getLogger(logger_name).disable(logging.CRITICAL) + logging.getLogger(logger_name).disabled = True