[ python-Bugs-901330 ] logging handlers can close without flush
SourceForge.net
noreply at sourceforge.net
Fri Feb 20 15:16:48 EST 2004
Bugs item #901330, was opened at 2004-02-20 15:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
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