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 shamilbi
Recipients shamilbi, vinay.sajip
Date 2009-04-20.15:29:28
SpamBayes Score 0.052927323
Marked as misclassified No
Message-id <>
(python 2.6.2, WinXP)
logging to console stopped working. Here is a workaround:

class StreamHandler(Handler):
    def emit(self, record):
                    if (isinstance(msg, unicode) or
                        getattr(stream, 'encoding', None) is None):
-                         stream.write(fs % msg)
+                         if stream == sys.stdout:
+                             print(msg)
+                         else:
+                             stream.write(fs % msg)
Date User Action Args
2009-04-20 15:29:30shamilbisetrecipients: + shamilbi, vinay.sajip
2009-04-20 15:29:30shamilbisetmessageid: <>
2009-04-20 15:29:28shamilbilinkissue5170 messages
2009-04-20 15:29:28shamilbicreate