[Python-checkins] python/dist/src/Lib/logging handlers.py,1.2,1.3

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2003年1月25日 18:14:25 -0800


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1:/tmp/cvs-serv24327/Lib/logging
Modified Files:
	handlers.py 
Log Message:
SF #642974, logging SysLogHandler proto type wrong
Syslog uses UDP (SOCK_DGRAM)
Index: handlers.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/handlers.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** handlers.py	13 Nov 2002 16:18:29 -0000	1.2
--- handlers.py	26 Jan 2003 02:14:23 -0000	1.3
***************
*** 349,353 ****
 self.facility = facility
 if type(address) == types.StringType:
! self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
 self.socket.connect(address)
 self.unixsocket = 1
--- 349,353 ----
 self.facility = facility
 if type(address) == types.StringType:
! self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
 self.socket.connect(address)
 self.unixsocket = 1

AltStyle によって変換されたページ (->オリジナル) /