Commit 1e86beb3 authored by Vinay Sajip's avatar Vinay Sajip

One-off "No handlers..." error message only raised if raiseExceptions is set.

parent db85ed54
......@@ -1123,7 +1123,7 @@ class Logger(Filterer):
c = None #break out
else:
c = c.parent
if (found == 0) and not self.manager.emittedNoHandlerWarning:
if (found == 0) and raiseExceptions and not self.manager.emittedNoHandlerWarning:
sys.stderr.write("No handlers could be found for logger"
" \"%s\"\n" % self.name)
self.manager.emittedNoHandlerWarning = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment