[Python-checkins] r53297 - python/branches/release25-maint/Lib/logging/handlers.py

vinay.sajip python-checkins at python.org
Mon Jan 8 11:11:59 CET 2007


Author: vinay.sajip
Date: Mon Jan 8 11:11:58 2007
New Revision: 53297
Modified:
 python/branches/release25-maint/Lib/logging/handlers.py
Log:
Backported change from trunk:
Made SysLogHandler more resilient in the face of syslogd failures.
Modified: python/branches/release25-maint/Lib/logging/handlers.py
==============================================================================
--- python/branches/release25-maint/Lib/logging/handlers.py	(original)
+++ python/branches/release25-maint/Lib/logging/handlers.py	Mon Jan 8 11:11:58 2007
@@ -586,11 +586,11 @@
 self.address = address
 self.facility = facility
 if type(address) == types.StringType:
- self._connect_unixsocket(address)
 self.unixsocket = 1
+ self._connect_unixsocket(address)
 else:
- self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 self.unixsocket = 0
+ self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 
 self.formatter = None
 


More information about the Python-checkins mailing list

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