This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rszefler
Recipients rszefler
Date 2009-10-07.12:42:36
SpamBayes Score 1.4104051e-11
Marked as misclassified No
Message-id <1254919358.82.0.721761611674.issue7077@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2009-10-07 12:42:39rszeflersetrecipients: + rszefler
2009-10-07 12:42:38rszeflersetmessageid: <1254919358.82.0.721761611674.issue7077@psf.upfronthosting.co.za>
2009-10-07 12:42:37rszeflerlinkissue7077 messages
2009-10-07 12:42:36rszeflercreate