Commit 6da1e1f2 authored by 's avatar

fix for syslog port passing to medusa logger

parent 1d294a29
......@@ -607,7 +607,8 @@ try:
elif os.environ.has_key('ZSYSLOG'):
lg = logger.syslog_logger(os.environ['ZSYSLOG'])
elif os.environ.has_key('ZSYSLOG_SERVER'):
lg = logger.syslog_logger(string.split(os.environ['ZSYSLOG_SERVER'], ':'))
(addr, port) = string.split(os.environ['ZSYSLOG_SERVER'], ':')
lg = logger.syslog_logger((addr, int(port))
else:
lg = logger.file_logger(LOG_PATH)
......
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