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 srid
Recipients srid
Date 2009-06-24.01:42:45
SpamBayes Score 0.0008350572
Marked as misclassified No
Message-id <1245807768.39.0.536701423847.issue6333@psf.upfronthosting.co.za>
In-reply-to
Content
The logging module has a bug that tries to call `flush' on a closed 
file handle (sys.std[out|err] to be specific). This bug was introduced 
by ConsoleHandler as defined in http://code.activestate.com/
recipes/576819/

The fix is simple: change definition of StreamHandler.flush in logging/
__init__.py to:

  def flush(self):
      if self.stream and hasattr(self.stream, 'flush') and not 
self.stream.closed:
          logging.StreamHandler.flush()
History
Date User Action Args
2009-06-24 01:42:48sridsetrecipients: + srid
2009-06-24 01:42:48sridsetmessageid: <1245807768.39.0.536701423847.issue6333@psf.upfronthosting.co.za>
2009-06-24 01:42:46sridlinkissue6333 messages
2009-06-24 01:42:45sridcreate