diff --git a/__init__.py b/__init__.py --- a/__init__.py +++ b/__init__.py @@ -1437,7 +1437,8 @@ c = c.parent if (found == 0): if lastResort: - lastResort.handle(record) + if record.levelno >= lastResort.level: + lastResort.handle(record) elif raiseExceptions and not self.manager.emittedNoHandlerWarning: sys.stderr.write("No handlers could be found for logger" " \"%s\"\n" % self.name)