[Zodb-checkins] CVS: Zope3/src/ZConfig/components/logger -
handlers.py:1.2
Fred L. Drake, Jr.
fred at zope.com
Mon Apr 12 14:02:52 EDT 2004
Update of /cvs-repository/Zope3/src/ZConfig/components/logger
In directory cvs.zope.org:/tmp/cvs-serv26075
Modified Files:
handlers.py
Log Message:
make the FileHandlerFactory somewhat more debug friendly
=== Zope3/src/ZConfig/components/logger/handlers.py 1.1 => 1.2 ===
--- Zope3/src/ZConfig/components/logger/handlers.py:1.1 Fri Jan 2 13:46:12 2004
+++ Zope3/src/ZConfig/components/logger/handlers.py Mon Apr 12 14:02:51 2004
@@ -79,10 +79,12 @@
from ZConfig.components.logger import loghandler
path = self.section.path
if path == "STDERR":
- return loghandler.StreamHandler(sys.stderr)
- if path == "STDOUT":
- return loghandler.StreamHandler(sys.stdout)
- return loghandler.FileHandler(path)
+ handler = loghandler.StreamHandler(sys.stderr)
+ elif path == "STDOUT":
+ handler = loghandler.StreamHandler(sys.stdout)
+ else:
+ handler = loghandler.FileHandler(path)
+ return handler
_syslog_facilities = {
"auth": 1,
More information about the Zodb-checkins
mailing list