summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2005-10-23 22:32:59 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2005-10-23 22:32:59 +0000
commit1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2 (patch)
treec32bf4c6aea3ebde014adcf310d9a61ee9b4c928 /Lib/logging
parentdb85ed548a04585dc0ea77fdf8b60ad600909451 (diff)
downloadcpython-git-1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2.tar.gz
One-off "No handlers..." error message only raised if raiseExceptions is set.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index b06935e8e6..ac734e541e 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -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