diff options
author | Derek Brown <derek@allderek.com> | 2020-01-07 16:40:23 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2020-01-07 16:40:23 (GMT) |
commit | 950c6795aa0ffa85e103a13e7a04e08cb34c66ad (patch) | |
tree | db44f0644d4fadec34da5f55c9460e1623f7f52f /Misc | |
parent | 5b23f7618d434f3000bde482233c8642a6eb2c67 (diff) | |
download | cpython-950c6795aa0ffa85e103a13e7a04e08cb34c66ad.zip cpython-950c6795aa0ffa85e103a13e7a04e08cb34c66ad.tar.gz cpython-950c6795aa0ffa85e103a13e7a04e08cb34c66ad.tar.bz2 |
bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-01-02-20-21-03.bpo-39198.nzwGyG.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-02-20-21-03.bpo-39198.nzwGyG.rst b/Misc/NEWS.d/next/Library/2020-01-02-20-21-03.bpo-39198.nzwGyG.rst new file mode 100644 index 0000000..ec4e81e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-02-20-21-03.bpo-39198.nzwGyG.rst @@ -0,0 +1 @@ +If an exception were to be thrown in `Logger.isEnabledFor` (say, by asyncio timeouts or stopit) , the `logging` global lock may not be released appropriately, resulting in deadlock. This change wraps that block of code with `try...finally` to ensure the lock is released.
\ No newline at end of file |