[Python-checkins] python/dist/src/Lib/logging handlers.py, 1.17, 1.18

vsajip at users.sourceforge.net vsajip at users.sourceforge.net
Tue Aug 24 11:36:27 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29765

Modified Files:
	handlers.py 
Log Message:
Fixed bug in DatagramHandler.send()

Index: handlers.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/handlers.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- handlers.py	18 Aug 2004 12:27:40 -0000	1.17
+++ handlers.py	24 Aug 2004 09:36:23 -0000	1.18
@@ -450,6 +450,8 @@
         when the network is busy - UDP does not guarantee delivery and
         can deliver packets out of sequence.
         """
+        if self.sock is None:
+            self.createSocket()
         self.sock.sendto(s, (self.host, self.port))
 
 class SysLogHandler(logging.Handler):



More information about the Python-checkins mailing list