Comment out dodgy log-kv (#12554)
parent
c48ab3734e
commit
6d89f1239c
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug introduced in Synapse 1.58.0rc1 where the main process could consume excessive amounts of CPU and memory handling sentry logging failures.
|
|
@ -683,9 +683,12 @@ class DeviceHandler(DeviceWorkerHandler):
|
||||||
self.federation_sender.send_device_messages(
|
self.federation_sender.send_device_messages(
|
||||||
host, immediate=False
|
host, immediate=False
|
||||||
)
|
)
|
||||||
log_kv(
|
# TODO: when called, this isn't in a logging context.
|
||||||
{"message": "sent device update to host", "host": host}
|
# This leads to log spam, sentry event spam, and massive
|
||||||
)
|
# memory usage. See #12552.
|
||||||
|
# log_kv(
|
||||||
|
# {"message": "sent device update to host", "host": host}
|
||||||
|
# )
|
||||||
|
|
||||||
if current_stream_id != stream_id:
|
if current_stream_id != stream_id:
|
||||||
# Clear the set of hosts we've already sent to as we're
|
# Clear the set of hosts we've already sent to as we're
|
||||||
|
|
Loading…
Reference in New Issue