From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Date: Sun, 20 May 2012 14:35:00 +0000 (+0100)
Subject: Fixes #14864: Added documentation on how to undo the effects of a logging.disable... 
X-Git-Tag: v2.7.4rc1~798
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f045ea4409ce58c6c886cb2922c88ae73ee9ce6;p=python

Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.
---

diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index b4185c3b9d..b77fd3697b 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -814,7 +814,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)