]> granicus.if.org Git - python/commit
bpo-37742: Return the root logger when logging.getLogger('root') is c… (#15077)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 2 Aug 2019 15:53:00 +0000 (16:53 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2019 15:53:00 +0000 (16:53 +0100)
commitcb65b3a4f484ce71dcb76a918af98c7015513025
tree7f4e08a9ed98315e4fe5d0651f9344271db928a2
parent854d0a4b98b13629252e21edaf2b785b429e5135
bpo-37742: Return the root logger when logging.getLogger('root') is c… (#15077)

* bpo-37742: Return the root logger when logging.getLogger('root') is called.

* Added type check guard on logger name in logging.getLogger() and refined a test.
Lib/logging/__init__.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2019-08-02-14-01-25.bpo-37742.f4Xn9S.rst [new file with mode: 0644]