Closes #25685: Made SocketHandler emission more efficient.
This commit is contained in:
parent
f81be8aa3f
commit
9cdfd18fc6
|
@ -588,6 +588,8 @@ class SocketHandler(logging.Handler):
|
||||||
d['msg'] = record.getMessage()
|
d['msg'] = record.getMessage()
|
||||||
d['args'] = None
|
d['args'] = None
|
||||||
d['exc_info'] = None
|
d['exc_info'] = None
|
||||||
|
# Issue #25685: delete 'message' if present: redundant with 'msg'
|
||||||
|
d.pop('message', None)
|
||||||
s = pickle.dumps(d, 1)
|
s = pickle.dumps(d, 1)
|
||||||
slen = struct.pack(">L", len(s))
|
slen = struct.pack(">L", len(s))
|
||||||
return slen + s
|
return slen + s
|
||||||
|
|
Loading…
Reference in New Issue