]> granicus.if.org Git - python/commitdiff
Issue #21752: Documented change to behaviour of logging.getLevelName().
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 14 Jun 2014 08:26:26 +0000 (09:26 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 14 Jun 2014 08:26:26 +0000 (09:26 +0100)
Doc/library/logging.rst

index c0a479e228d59322e3fc2eee065dac67ee591612..a3e2770c899382fbc12c089962ced1066a2f32d8 100644 (file)
@@ -1049,6 +1049,11 @@ functions.
    of the defined levels is passed in, the corresponding string representation is
    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)