cpython (3.5): Closes #25685: Made SocketHandler emission more efficient.
https://hg.python.org/cpython/rev/6210b41a2394 changeset: 99680:6210b41a2394 branch: 3.5 parent: 99676:0cd2de69fb66 user: Vinay Sajip <vinay_sajip@yahoo.co.uk> date: Sat Dec 26 12:48:44 2015 +0000 summary: Closes #25685: Made SocketHandler emission more efficient. files: Lib/logging/handlers.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -588,6 +588,8 @@ 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 -- Repository URL: https://hg.python.org/cpython
participants (1)
-
vinay.sajip