logging: remove BOM addition to log messages

This commit is contained in:
Benjamin Dauvergne 2013-05-21 18:15:05 +02:00
parent 6c7f21a197
commit eaff3538a2
1 changed files with 0 additions and 2 deletions

View File

@ -30,8 +30,6 @@ class SysLogHandler(logging.handlers.SysLogHandler):
# Message is a string. Convert to bytes as required by RFC 5424
if type(msg) is unicode:
msg = msg.encode('utf-8')
if codecs:
msg = codecs.BOM_UTF8 + msg
msg = prio + msg
try:
if self.unixsocket: