[Python-checkins] cpython (merge 3.2 -> default): Closes #14864: Added documentation on how to undo the effects of a
vinay.sajip
python-checkins at python.org
Sun May 20 16:37:42 CEST 2012
http://hg.python.org/cpython/rev/76445d7e613f
changeset: 77089:76445d7e613f
parent: 77086:2e96629c6dab
parent: 77088:c30170a168b3
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Sun May 20 15:37:33 2012 +0100
summary:
Closes #14864: Added documentation on how to undo the effects of a logging.disable() call. Thanks to user Guillaume for the suggestion.
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
@@ -962,7 +962,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
More information about the Python-checkins
mailing list