]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes #14864: Added documentation on how to undo the effects of a logging.disable...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 20 May 2012 14:36:17 +0000 (15:36 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 20 May 2012 14:36:17 +0000 (15:36 +0100)
Doc/library/logging.rst

index dc97726258a07e0f7d78210e0f71f8724b49a0af..14e00fe1edbe03f3f8b4eb981770e5b8022251e6 100644 (file)
@@ -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)