Kaydet (Commit) e0d324d0 authored tarafından Vinay Sajip's avatar Vinay Sajip

Issue #21752: Documented change to behaviour of logging.getLevelName().

üst a40e6b0c
...@@ -1049,6 +1049,11 @@ functions. ...@@ -1049,6 +1049,11 @@ functions.
of the defined levels is passed in, the corresponding string representation is of the defined levels is passed in, the corresponding string representation is
returned. Otherwise, the string 'Level %s' % lvl is returned. returned. Otherwise, the string 'Level %s' % lvl is returned.
.. versionchanged:: 3.4
In Python versions earlier than 3.4, this function could also be passed a
text level, and would return the corresponding numeric value of the level.
This undocumented behaviour was a mistake, and has been removed in Python
3.4.
.. function:: makeLogRecord(attrdict) .. function:: makeLogRecord(attrdict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment