[ python-Bugs-1760556 ] logging.FileHandler may throw exception in flush()

SourceForge.net noreply at sourceforge.net
Sat Jul 28 05:35:40 CEST 2007


Bugs item #1760556, was opened at 2007-07-25 12:35
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1760556&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: J Livingston (jlivingston)
>Assigned to: Vinay Sajip (vsajip)
Summary: logging.FileHandler may throw exception in flush()

Initial Comment:
Python 2.4.2
Windows XP SP2

logging.FileHandler may throw exception when calling flush(). This happens rarely and is due to the file handler already having been closed (probably by an external process). Simply checking within the close() method for an open file handler prior to calling flush() would fix this.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-07-27 20:35

Message:
Logged In: YES 
user_id=33168
Originator: NO

Vinay, could you take a look?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1760556&group_id=5470


More information about the Python-bugs-list mailing list