[Mailman-Developers] Problem with runner logger with unicode

2013-12-03 Thread nicolas
Hi, I encountered a subtil problem when a component logs unicode strings (present case was the hyperkitty archiver) : (py27)mailman@mail:~$ Traceback (most recent call last): File /home/mailman/mailman/src/mailman/core/logging.py, line 76, in emit msg = self.format(record) File

Re: [Mailman-Developers] Problem with runner logger with unicode

2013-12-03 Thread nicolas
Basicaly it was not hyperkitty archiver, but mailman itself (or in fact Storm localized error message strings), cause here is the output : Dec 03 12:37:49 2013 (23760) ACCEPT: CAMYTGwj+v6q+Utc2=wk_7nloeokc+r5ctb7pyc95fddmq0l...@mail.gmail.com Dec 03 12:37:50 2013 (23762) conf loaded Dec 03

Re: [Mailman-Developers] Problem with runner logger with unicode

2013-12-03 Thread Aurelien Bompard
So, if I understand correctly, Storm add to its exception the error message it gets from PostgreSQL, which is a bytestream (encoded in UTF-8 on your system). But Mailman sends its logs to the logger as unicode, thus the exception must be converted to unicode, and that's where the