Commits

Vinay Sajip committed be193af

Backported change in shutdown(); now takes an optional handler-list argument.

  • Participants
  • Parent commits 813dcc8
  • Branches 2.4

Comments (0)

Files changed (1)

File Lib/logging/__init__.py

     """
     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: