Commit a9e2200a authored by Fred Drake's avatar Fred Drake

EVENT_LOG_FILE and friends are no longer used; set up the default

logging directly
parent 749c44af
...@@ -128,13 +128,12 @@ class ZEOServer: ...@@ -128,13 +128,12 @@ class ZEOServer:
def setup_default_logging(self): def setup_default_logging(self):
if self.options.config_logger is not None: if self.options.config_logger is not None:
return return
if os.getenv("EVENT_LOG_FILE") is not None: # No log file is configured; default to stderr.
return import logging
if os.getenv("STUPID_LOG_FILE") is not None: logger = logging.getLogger()
return handler = logging.StreamHandler()
# No log file is configured; default to stderr. The logging handler.setLevel(logging.INFO)
# level can still be controlled by {STUPID,EVENT}_LOG_SEVERITY. logger.addHandler(handler)
os.environ["EVENT_LOG_FILE"] = ""
def check_socket(self): def check_socket(self):
if self.can_connect(self.options.family, self.options.address): if self.can_connect(self.options.family, self.options.address):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment