mirror of https://github.com/python/cpython
Closes #17981: Merged fix from 3.3.
This commit is contained in:
commit
3a8f510b52
|
@ -876,6 +876,7 @@ class SysLogHandler(logging.Handler):
|
|||
try:
|
||||
self.socket.send(msg)
|
||||
except OSError:
|
||||
self.socket.close()
|
||||
self._connect_unixsocket(self.address)
|
||||
self.socket.send(msg)
|
||||
elif self.socktype == socket.SOCK_DGRAM:
|
||||
|
|
Loading…
Reference in New Issue