[Zope-Checkins] CVS: Zope/lib/python/ZEO - runzeo.py:1.23
Fred L. Drake, Jr.
fred at zope.com
Thu Apr 22 14:45:52 EDT 2004
Update of /cvs-repository/Zope/lib/python/ZEO
In directory cvs.zope.org:/tmp/cvs-serv10050
Modified Files:
runzeo.py
Log Message:
EVENT_LOG_FILE and friends are no longer used; set up the default
logging directly
=== Zope/lib/python/ZEO/runzeo.py 1.22 => 1.23 ===
--- Zope/lib/python/ZEO/runzeo.py:1.22 Thu Feb 26 19:31:51 2004
+++ Zope/lib/python/ZEO/runzeo.py Thu Apr 22 14:45:52 2004
@@ -128,13 +128,12 @@
def setup_default_logging(self):
if self.options.config_logger is not None:
return
- if os.getenv("EVENT_LOG_FILE") is not None:
- return
- if os.getenv("STUPID_LOG_FILE") is not None:
- return
- # No log file is configured; default to stderr. The logging
- # level can still be controlled by {STUPID,EVENT}_LOG_SEVERITY.
- os.environ["EVENT_LOG_FILE"] = ""
+ # No log file is configured; default to stderr.
+ import logging
+ logger = logging.getLogger()
+ handler = logging.StreamHandler()
+ handler.setLevel(logging.INFO)
+ logger.addHandler(handler)
def check_socket(self):
if self.can_connect(self.options.family, self.options.address):
More information about the Zope-Checkins
mailing list