Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07162d4

Browse files
committed
Closes #14864: Added documentation on how to undo the effects of a logging.disable() call. Thanks to user Guillaume for the suggestion.
2 parents a1df1cc + 69d8493 commit 07162d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/logging.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ functions.
962962
effect is to disable all logging calls of severity *lvl* and below, so that
963963
if you call it with a value of INFO, then all INFO and DEBUG events would be
964964
discarded, whereas those of severity WARNING and above would be processed
965-
according to the logger's effective level.
965+
according to the logger's effective level. To undo the effect of a call to
966+
``logging.disable(lvl)``, call ``logging.disable(logging.NOTSET)``.
966967

967968

968969
.. function:: addLevelName(lvl, levelName)

0 commit comments

Comments
 (0)