Project

General

Profile

« Previous | Next » 

Revision eaff3538

Added by Benjamin Dauvergne almost 12 years ago

logging: remove BOM addition to log messages

View differences:

entrouvert/logging/handlers.py
30 30
            # Message is a string. Convert to bytes as required by RFC 5424
31 31
            if type(msg) is unicode:
32 32
                msg = msg.encode('utf-8')
33
                if codecs:
34
                    msg = codecs.BOM_UTF8 + msg
35 33
            msg = prio + msg
36 34
            try:
37 35
                if self.unixsocket:

Also available in: Unified diff