Re: Why BOM in logging message?

2013-01-10 Thread Roy Smith
In article roy-10b053.20174309012...@news.panix.com, Roy Smith r...@panix.com wrote: In article mailman.344.1357772847.2939.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Thu, Jan 10, 2013 at 9:54 AM, Roy Smith r...@panix.com wrote: What's weird is that two of the servers,

Re: Why BOM in logging message?

2013-01-10 Thread Chris Angelico
On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: Well, this is fascinating. It turns out that while all of our machines report that they're running 2.7.3, they have two different versions of /usr/lib/python2.7/logging/handlers.py! -rw-r--r-- 1 root root 45076 Aug 1 05:39

Re: Why BOM in logging message?

2013-01-10 Thread Roy Smith
On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: -rw-r--r-- 1 root root 45076 Aug 1 05:39 /usr/lib/python2.7/logging/handlers.py -rw-r--r-- 1 root root 45143 Apr 20 2012 /usr/lib/python2.7/logging/handlers.py Chris Angelico ros...@gmail.com wrote: $ dpkg -S

Re: Why BOM in logging message?

2013-01-10 Thread Chris Angelico
On Fri, Jan 11, 2013 at 3:40 AM, Roy Smith r...@panix.com wrote: On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: -rw-r--r-- 1 root root 45076 Aug 1 05:39 /usr/lib/python2.7/logging/handlers.py -rw-r--r-- 1 root root 45143 Apr 20 2012 /usr/lib/python2.7/logging/handlers.py

Re: Why BOM in logging message?

2013-01-10 Thread Terry Reedy
On 1/10/2013 11:06 AM, Roy Smith wrote: Well, this is fascinating. It turns out that while all of our machines report that they're running 2.7.3, they have two different versions of /usr/lib/python2.7/logging/handlers.py! -rw-r--r-- 1 root root 45076 Aug 1 05:39

Why BOM in logging message?

2013-01-09 Thread Roy Smith
We've got 10 (supposedly) identical servers, all running Ubuntu 12.04, Python 2.7, Django 1.3. We log to syslog using the logging module and a custom fomatter. 'formatters': { 'verbose': { 'format': '%(asctime)s [%(process)d]: %(program)s %(session_id)s

Re: Why BOM in logging message?

2013-01-09 Thread Chris Angelico
On Thu, Jan 10, 2013 at 9:54 AM, Roy Smith r...@panix.com wrote: What's weird is that two of the servers, and only those two, stick a BOM (Byte Order Mark) in front of the message they log. Could it be this issue you're looking at? http://bugs.python.org/issue14452 What are the exact Python

Re: Why BOM in logging message?

2013-01-09 Thread John Gordon
In kcksg2$bkp$1...@panix2.panix.com r...@panix.com (Roy Smith) writes: What's weird is that two of the servers, and only those two, stick a BOM (Byte Order Mark) in front of the message they log. It shows up in syslog as: 2013-01-09T00:00:00+00:00 web5.songza.com

Re: Why BOM in logging message?

2013-01-09 Thread Roy Smith
In article kcktti$sbg$1...@reader1.panix.com, John Gordon gor...@panix.com wrote: In kcksg2$bkp$1...@panix2.panix.com r...@panix.com (Roy Smith) writes: What's weird is that two of the servers, and only those two, stick a BOM (Byte Order Mark) in front of the message they log. It shows

Re: Why BOM in logging message?

2013-01-09 Thread Roy Smith
In article mailman.344.1357772847.2939.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Thu, Jan 10, 2013 at 9:54 AM, Roy Smith r...@panix.com wrote: What's weird is that two of the servers, and only those two, stick a BOM (Byte Order Mark) in front of the message they log.