summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2022-07-05 15:04:29 (GMT)
committerGitHub <noreply@github.com>2022-07-05 15:04:29 (GMT)
commit3287e45847a4d471e20425f0da5194ac5735e16c (patch)
tree527cf60e4b723a503f47c803c38599b01f9e5c7c /Lib/logging/handlers.py
parent5bd56a030ddf19052f23194e7ff95b4b9144f94f (diff)
downloadcpython-3287e45847a4d471e20425f0da5194ac5735e16c.zip
cpython-3287e45847a4d471e20425f0da5194ac5735e16c.tar.gz
cpython-3287e45847a4d471e20425f0da5194ac5735e16c.tar.bz2
[3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94565)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r--Lib/logging/handlers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 61a3995..b2d1f27 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -1439,7 +1439,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.
@@ -1449,6 +1449,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):