From 9cdfd18fc6357f1fe343e815196cbe1db2a17af5 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sat, 26 Dec 2015 12:48:44 +0000 Subject: Closes #25685: Made SocketHandler emission more efficient. --- Lib/logging/handlers.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v0.12