[Python-checkins] python/dist/src/Lib/logging __init__.py, 1.33, 1.34

vsajip@users.sourceforge.net vsajip at users.sourceforge.net
Mon Oct 24 00:33:02 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5283

Modified Files:
	__init__.py 
Log Message:
One-off "No handlers..." error message only raised if raiseExceptions is set.

Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- __init__.py	21 Oct 2005 06:00:24 -0000	1.33
+++ __init__.py	23 Oct 2005 22:32:59 -0000	1.34
@@ -1123,7 +1123,7 @@
                 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



More information about the Python-checkins mailing list