Patch by Jeremy Katz (SF #1609407)

This commit is contained in:
Vinay Sajip 2006-12-11 14:07:16 +00:00
parent f54a63b3b5
commit 5492e1722a
1 changed files with 2 additions and 2 deletions

View File

@ -586,11 +586,11 @@ class SysLogHandler(logging.Handler):
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