[Zodb-checkins] CVS: Zope/lib/python/zLOG - EventLogger.py:1.8.6.1
Chris McDonough
chrism at zope.com
Sat Aug 2 02:35:17 EDT 2003
Update of /cvs-repository/Zope/lib/python/zLOG
In directory cvs.zope.org:/tmp/cvs-serv15780
Modified Files:
Tag: Zope-2_7-branch
EventLogger.py
Log Message:
Merge from head:
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.8.6.1 ===
--- 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:35:12 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