[ python-Bugs-901330 ] logging handlers can close without flush
SourceForge.net
noreply at sourceforge.net
Sat Feb 21 17:19:10 EST 2004
Bugs item #901330, was opened at 2004-02-20 20:14
Message generated for change (Comment added) made by vsajip
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=901330&group_id=5470
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Vinay Sajip (vsajip)
Summary: logging handlers can close without flush
Initial Comment:
logging.Handler().close() does not call flush(). Some
derived handlers override this and call flush themselves;
some do not. I'm not certain which streams are buffered
under the hood, but I think it would be fine to call flush in
all cases. In particular, I think BufferingHandler should
always flush, and FileHandler probably should too.
Note that just adding it to Handler().close() would not
work with the current CVS version, as the derived class
may call the parent close (to clean up _handlers) after
closing (and making unflushable) the stream.
----------------------------------------------------------------------
>Comment By: Vinay Sajip (vsajip)
Date: 2004-02-21 22:19
Message:
Logged In: YES
user_id=308438
Just checked in fixes into CVS.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=901330&group_id=5470
More information about the Python-bugs-list
mailing list