summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-20 15:36:17 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-20 15:36:17 +0100
commita31998902a3ea2fa4a5d5ca450147ef41abce796 (patch)
tree26bca20eec4ececd2e04e3cc859df9aeebe8adc9
parent1dfe2d2100742c1a55bca4fe425b42f95332b344 (diff)
downloadcpython-a31998902a3ea2fa4a5d5ca450147ef41abce796.tar.gz
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.
-rw-r--r--Doc/library/logging.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index dc97726258..14e00fe1ed 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -942,7 +942,8 @@ functions.
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)