classification
Title: Mention logging.disable(logging.NOTSET) to reset the command in logging module documentation
Type: enhancement Stage: resolved
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, guibog, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2012-05-20 13:39 by guibog, last changed 2012-05-20 14:39 by vinay.sajip. This issue is now closed.

Messages (3)
msg161206 - (view) Author: Guillaume (guibog) Date: 2012-05-20 13:39
In the logging module documentation, nothing tells the user how to undo or reset a call to logging.disable(lvl). From reading the code (python 2.6 version) it seem the correct way to undo disable(lvl) is to call disable(0), but I think calling disable(NOTSET) would make more sense. The sentence I propose to add at the end of the paragraph about the disable() function is:

To undo the effect of a call to logging.disable(lvl), call logging.disable(logging.NOTSET).

(This is my first doc bug report, please feel free to tell me how to improve.)
msg161208 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-20 14:37
New changeset 4973c90ce9e6 by Vinay Sajip in branch '2.7':
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.
http://hg.python.org/cpython/rev/4973c90ce9e6

New changeset c30170a168b3 by Vinay Sajip in branch '3.2':
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.
http://hg.python.org/cpython/rev/c30170a168b3

New changeset 76445d7e613f by Vinay Sajip in branch 'default':
Closes #14864: Added documentation on how to undo the effects of a logging.disable() call. Thanks to user Guillaume for the suggestion.
http://hg.python.org/cpython/rev/76445d7e613f
msg161209 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2012-05-20 14:39
Guillaume, thank you, your wording was perfect!
History
Date User Action Args
2012-05-20 14:39:53vinay.sajipsetmessages: + msg161209
2012-05-20 14:37:41python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg161208

resolution: fixed
stage: resolved
2012-05-20 13:54:05pitrousetnosy: + vinay.sajip
2012-05-20 13:39:37guibogcreate