summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/logging/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 54d4e88..83db827 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1729,9 +1729,7 @@ class LoggerAdapter(object):
"""
Is this logger enabled for level 'level'?
"""
- if self.logger.manager.disable >= level:
- return False
- return level >= self.getEffectiveLevel()
+ return self.logger.isEnabledFor(level)
def setLevel(self, level):
"""