mirror of
https://github.com/python/cpython.git
synced 2025-11-17 09:30:10 +00:00
bpo-42378: fixed log truncation on logging shutdown (GH-27310)
Automerge-Triggered-By: GH:vsajip
This commit is contained in:
parent
9751f85914
commit
96cf5a63d2
4 changed files with 32 additions and 6 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Fixes the issue with log file being overwritten when
|
||||
:class:`logging.FileHandler` is used in :mod:`atexit` with *filemode* set to
|
||||
``'w'``. Note this will cause the message in *atexit* not being logged if
|
||||
the log stream is already closed due to shutdown of logging.
|
||||
Loading…
Add table
Add a link
Reference in a new issue