diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2005-10-23 22:32:59 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2005-10-23 22:32:59 (GMT) |
commit | 1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2 (patch) | |
tree | c32bf4c6aea3ebde014adcf310d9a61ee9b4c928 /Lib/logging/__init__.py | |
parent | db85ed548a04585dc0ea77fdf8b60ad600909451 (diff) | |
download | cpython-1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2.zip cpython-1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2.tar.gz cpython-1e86beb3f81d153481ed5cdfacbc8730b5e8c2a2.tar.bz2 |
One-off "No handlers..." error message only raised if raiseExceptions is set.
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index b06935e..ac734e5 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 |