diff options
author | Erik Montnemery <erik@montnemery.com> | 2022-07-05 14:23:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 14:23:12 (GMT) |
commit | c60f125533b8808317c1370450f0535430d59d8c (patch) | |
tree | f7ae0ef6c786f91dcbd9b15498d1d6d5c32b784f /Lib/logging | |
parent | 324d01944d16868b07df9e8eef6987766a31a36d (diff) | |
download | cpython-c60f125533b8808317c1370450f0535430d59d8c.zip cpython-c60f125533b8808317c1370450f0535430d59d8c.tar.gz cpython-c60f125533b8808317c1370450f0535430d59d8c.tar.bz2 |
bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index b4c8a3b..1c8226c 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -1456,7 +1456,7 @@ class QueueHandler(logging.Handler): # (if there's exception data), and also returns the formatted # message. We can then use this to replace the original # msg + args, as these might be unpickleable. We also zap the - # exc_info and exc_text attributes, as they are no longer + # exc_info, exc_text and stack_info attributes, as they are no longer # needed and, if not None, will typically not be pickleable. msg = self.format(record) # bpo-35726: make copy of record to avoid affecting other handlers in the chain. @@ -1466,6 +1466,7 @@ class QueueHandler(logging.Handler): record.args = None record.exc_info = None record.exc_text = None + record.stack_info = None return record def emit(self, record): |