Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (2.7): Fixes #14864: Added documentation on how to undo the effects of a

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

May 20, 2012, 7:37 AM

Post #1 of 1 (63 views)
Permalink
cpython (2.7): Fixes #14864: Added documentation on how to undo the effects of a

http://hg.python.org/cpython/rev/4973c90ce9e6
changeset: 77087:4973c90ce9e6
branch: 2.7
parent: 77081:aad7cf67b9ea
user: Vinay Sajip <vinay_sajip [at] yahoo>
date: Sun May 20 15:35:00 2012 +0100
summary:
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.

files:
Doc/library/logging.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -814,7 +814,8 @@
effect is to disable all logging calls of severity *lvl* and below, so that
if you call it with a value of INFO, then all INFO and DEBUG events would be
discarded, whereas those of severity WARNING and above would be processed
- according to the logger's effective level.
+ according to the logger's effective level. To undo the effect of a call to
+ ``logging.disable(lvl)``, call ``logging.disable(logging.NOTSET)``.


.. function:: addLevelName(lvl, levelName)

--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.