summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_log/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_log/log.py b/oslo_log/log.py
index 8cf5d49..479c4a8 100644
--- a/oslo_log/log.py
+++ b/oslo_log/log.py
@@ -226,7 +226,7 @@ def _load_log_config(log_config_append):
# Reset all existing loggers before reloading config as fileConfig
# does not reset non-child loggers.
for logger in _iter_loggers():
- logger.level = logging.NOTSET
+ logger.setLevel(logging.NOTSET)
logger.handlers = []
logger.propagate = 1
logging.config.fileConfig(log_config_append,