]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19789: Clarified documentation for logging.disable.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 30 Nov 2013 22:45:29 +0000 (22:45 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 30 Nov 2013 22:45:29 +0000 (22:45 +0000)
Doc/library/logging.rst

index 37515017194021f5e6a141a481e2c83053ed4d91..29e9617283e490e2b888add7485b765862f567ea 100644 (file)
@@ -987,8 +987,10 @@ 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. To undo the effect of a call to
-   ``logging.disable(lvl)``, call ``logging.disable(logging.NOTSET)``.
+   according to the logger's effective level. If
+   ``logging.disable(logging.NOTSET)`` is called, it effectively removes this
+   overriding level, so that logging output again depends on the effective
+   levels of individual loggers.
 
 
 .. function:: addLevelName(lvl, levelName)