Commit a8eb45f4 authored by Michel Pelletier's avatar Michel Pelletier

Fixed it so that syslog is not on by default.

It broke windows.
parent 1182373c
......@@ -8,8 +8,13 @@ class syslogLogger:
if os.environ.has_key('ZSYSLOG_SERVER'):
(addr, port) = string.split(os.environ['ZSYSLOG_SERVER'], ':')
self.client = syslog_client((addr, int(port)))
else:
self.on = 1
elif os.environ.has_key('ZSYSLOG'):
self.client = syslog_client()
self.on = 1
else:
self.on = 0
def __call__(self, sub, sev, sum, det, err):
self.client.log(sum)
if on:
self.client.log(sum)
......@@ -8,8 +8,13 @@ class syslogLogger:
if os.environ.has_key('ZSYSLOG_SERVER'):
(addr, port) = string.split(os.environ['ZSYSLOG_SERVER'], ':')
self.client = syslog_client((addr, int(port)))
else:
self.on = 1
elif os.environ.has_key('ZSYSLOG'):
self.client = syslog_client()
self.on = 1
else:
self.on = 0
def __call__(self, sub, sev, sum, det, err):
self.client.log(sum)
if on:
self.client.log(sum)
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