Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db85ed5 commit 1e86bebCopy full SHA for 1e86beb
1 file changed
Lib/logging/__init__.py
@@ -1123,7 +1123,7 @@ def callHandlers(self, record):
1123
c = None #break out
1124
else:
1125
c = c.parent
1126
- if (found == 0) and not self.manager.emittedNoHandlerWarning:
+ if (found == 0) and raiseExceptions and not self.manager.emittedNoHandlerWarning:
1127
sys.stderr.write("No handlers could be found for logger"
1128
" \"%s\"\n" % self.name)
1129
self.manager.emittedNoHandlerWarning = 1
0 commit comments