From: Vinay Sajip Date: Sun, 20 May 2012 14:36:17 +0000 (+0100) Subject: Fixes #14864: Added documentation on how to undo the effects of a logging.disable... X-Git-Tag: v3.3.0a4~105^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69d8493899592c64c0297964d7addb91aaeb0f17;p=thirdparty%2FPython%2Fcpython.git 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 dc97726258a0..14e00fe1edbe 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)