[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

Kirill Pinchuk report at bugs.python.org
Thu Jun 3 09:17:31 EDT 2021


Kirill Pinchuk <cybergrind at gmail.com> added the comment:

Oh, sorry bad wording.

The current implementation has reconnection logic only for UNIX sockets
The patch adds reconnection logic for UDP/TCP sockets as well.


I've done it with minimal changes to the existing code to accomplish that. And probably it can be merged.

But in general, it looks like we can refactor SysLogHandler to inherit from SocketHandler. Not sure if it should be done in this PR or better to create separate?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44291>
_______________________________________


More information about the Python-bugs-list mailing list