[issue12168] SysLogHandler incorrectly appends \000 to messages

Vinay Sajip report at bugs.python.org
Wed May 25 18:02:11 CEST 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

> Petri Lehtinen <petri at digip.org> added the  comment:

> 
> FWIW, I once stumbled on this problem, and solved it by making  my own log 
>handler that uses functions from the syslog  module.

@Petri: It's great that it worked for you, but IIRC the syslog module has had 
thread-safety issues at least on some platforms, which is why it's not used in 
the SysLogHandler implementation (disclaimer: this was a while ago, I don't know 
if the syslog module is thread-safe now - I believe the thread-safety issues 
were in the underlying C APIs).

I am working on a patch, watch this space :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12168>
_______________________________________


More information about the Python-bugs-list mailing list