Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Lib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,10 +1728,11 @@ def callHandlers(self, record):
c = self
found = 0
while c:
for hdlr in c.handlers:
found = found + 1
if record.levelno >= hdlr.level:
hdlr.handle(record)
if record.levelno >= c.level:
for hdlr in c.handlers:
found = found + 1
if record.levelno >= hdlr.level:
hdlr.handle(record)
if not c.propagate:
c = None #break out
else:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In addition to checking the handler level, also verify the logger level when propagating log message.
Loading