This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients alanr, erlendaasland, jaraco, ned.deily, ronaldoussoren, vinay.sajip, youtux
Date 2020-12-31.18:57:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609441041.77.0.781597054264.issue38780@roundup.psfhosted.org>
In-reply-to
Content
I started work on a test in https://github.com/jaraco/cpython/tree/bugfix/bpo-38780-test, but (a) the test was failing to exhibit the expected failures, and (b) I realized that the fix isn't having the intended effect either, because for unix sockets, [self.socket is unconditionally set](https://github.com/python/cpython/blob/dfdca85dfa64e72df385b3a486f85b773fc0f135/Lib/logging/handlers.py#L872), overriding any NullSocket or None value.

The SysLogHandler code will need to be reorganized if self.socket is intended to model two modes (broken and initialized).

I'm not sure when I'll get another chance to take a look at this, but I'll not be able to wrap it up today, so I'm going to unassign it for now.
History
Date User Action Args
2020-12-31 18:57:22jaracosetrecipients: + jaraco, vinay.sajip, ronaldoussoren, ned.deily, youtux, erlendaasland, alanr
2020-12-31 18:57:21jaracosetmessageid: <1609441041.77.0.781597054264.issue38780@roundup.psfhosted.org>
2020-12-31 18:57:21jaracolinkissue38780 messages
2020-12-31 18:57:21jaracocreate