diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-26 12:48:44 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-26 12:48:44 (GMT) |
commit | 9cdfd18fc6357f1fe343e815196cbe1db2a17af5 (patch) | |
tree | 05bd75a0e1465916760c92846658043529bb43dd /Lib/logging/handlers.py | |
parent | f81be8aa3ff3cbae66686482219bd7c7561f3de8 (diff) | |
download | cpython-9cdfd18fc6357f1fe343e815196cbe1db2a17af5.zip cpython-9cdfd18fc6357f1fe343e815196cbe1db2a17af5.tar.gz cpython-9cdfd18fc6357f1fe343e815196cbe1db2a17af5.tar.bz2 |
Closes #25685: Made SocketHandler emission more efficient.
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r-- | Lib/logging/handlers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index b810fa9..c6840c3 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -588,6 +588,8 @@ class SocketHandler(logging.Handler): d['msg'] = record.getMessage() d['args'] = None d['exc_info'] = None + # Issue #25685: delete 'message' if present: redundant with 'msg' + d.pop('message', None) s = pickle.dumps(d, 1) slen = struct.pack(">L", len(s)) return slen + s |