[issue38780] SysLogHandler crash atexit

Jason R. Coombs report at bugs.python.org
Tue Nov 12 14:42:04 EST 2019


Jason R. Coombs <jaraco at jaraco.com> added the comment:

I could imagine extending the shutdown code to catch the reported error (https://github.com/python/cpython/blob/138ccbb02216ca086047c3139857fb44f3dab1f9/Lib/logging/__init__.py#L2130-L2135), but that wouldn't address the error in emit.

Similarly, the SysLogHandler could override shutdown to bypass the error if no socket attribute is present, but that again wouldn't address the emit case.

----------

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


More information about the Python-bugs-list mailing list