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

SourceForge.net noreply at sourceforge.net
Fri Feb 20 13:01:34 EST 2004


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

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Fixed
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.





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

>Comment By: Vinay Sajip (vsajip)
Date: 2004-02-20 18:01

Message:
Logged In: YES 
user_id=308438

A version of this patch has been accepted and checked into 
CVS. The shutdown() call is now safe because closing a 
handler removes it from the internal list used by shutdown().

Thank you for the patch.

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

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