Message93694
Trying to .emit() a Unicode string causes an awkward exception to be thrown:
Traceback (most recent call last):
File "/usr/lib/python2.5/logging/handlers.py", line 672, in emit
self.socket.sendto(msg, self.address)
TypeError: sendto() takes exactly 3 arguments (2 given)
The issue is fixed simply by adding some sort of encoding coercion
before the sendto, for example:
if type(msg)==unicode: msg=msg.encode('utf-8') |
|
Date |
User |
Action |
Args |
2009-10-07 12:42:39 | rszefler | set | recipients:
+ rszefler |
2009-10-07 12:42:38 | rszefler | set | messageid: <1254919358.82.0.721761611674.issue7077@psf.upfronthosting.co.za> |
2009-10-07 12:42:37 | rszefler | link | issue7077 messages |
2009-10-07 12:42:36 | rszefler | create | |
|