From e518551a916b074d735679221c0bde95972e1821 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 11 Jan 2007 20:08:56 +0000 Subject: Backported change in shutdown(); now takes an optional handler-list argument. --- Lib/logging/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 07f1add..9f3f26c 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1318,14 +1318,14 @@ def disable(level): """ root.manager.disable = level -def shutdown(): +def shutdown(handlerList=_handlerList): """ Perform any cleanup actions in the logging system (e.g. flushing buffers). Should be called at application exit. """ - for h in _handlerList[:]: # was _handlers.keys(): + for h in handlerList[:]: #errors might occur, for example, if files are locked #we just ignore them if raiseExceptions is not set try: -- cgit v0.12