[Zope-Checkins] CVS: Zope2 - z2.py:1.50

Brian Lloyd brian@digiciool.com
Thu, 8 Mar 2001 14:07:44 -0500 (EST)


Update of /cvs-repository/Zope2
In directory korak:/home/brian/temp/mainline_test

Modified Files:
	z2.py 
Log Message:
fix for syslog port passing to medusa logger



--- Updated File z2.py in package Zope2 --
--- z2.py	2001/02/14 20:13:53	1.49
+++ z2.py	2001/03/08 19:07:44	1.50
@@ -607,7 +607,8 @@
     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)