[Zodb-checkins] CVS: Zope/lib/python/zLOG - EventLogger.py:1.9

Chris McDonough chrism at zope.com
Sat Aug 2 02:34:38 EDT 2003


Update of /cvs-repository/Zope/lib/python/zLOG
In directory cvs.zope.org:/tmp/cvs-serv15426

Modified Files:
	EventLogger.py 
Log Message:
Don't try to optimize by checking for disabled and effective levels within the log method.  The logger's level may not be meaningful if this logger is configured with handlers that accept messages at a lower level than that of the logger itself.


=== Zope/lib/python/zLOG/EventLogger.py 1.8 => 1.9 ===
--- Zope/lib/python/zLOG/EventLogger.py:1.8	Thu Apr 24 12:11:31 2003
+++ Zope/lib/python/zLOG/EventLogger.py	Sat Aug  2 01:34:32 2003
@@ -44,12 +44,6 @@
         level = (zlog_to_pep282_severity_cache_get(severity) or
                  zlog_to_pep282_severity(severity))
 
-        # Try an early exit if the logger is disabled for this level.
-        # (XXX This inlines logger.isEnabledFor(level).)
-        if (self.logger.manager.disable >= level or
-            level < self.logger.getEffectiveLevel()):
-            return
-
         msg = "%s %s %s" % (
             severity_string_cache_get(severity) or severity_string(severity),
             subsystem,




More information about the Zodb-checkins mailing list