[Patches] [ python-Patches-881676 ] logging says to call shutdown - make it more likely

SourceForge.net noreply at sourceforge.net
Sun Jan 25 16:04:45 EST 2004


Patches item #881676, was opened at 2004-01-21 15:30
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=881676&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
>Assigned to: Vinay Sajip (vsajip)
Summary: logging says to call shutdown - make it more likely

Initial Comment:
The logging module says (in the code) that logging.
shutdown() should be called at application exit, but there 
is no way to enforce this -- particularly with an 
interactive session.  Calling it twice leads to errors.

This patch
(1)  Makes it safe to call shutdown more than once.
(2)  Uses atexit (with a workaround for Python 1.5) to 
flush and close buffers automatically when the system is 
shutting down normally.





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

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



More information about the Patches mailing list