Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6d89f12

Browse files
author
David Robertson
authored
Comment out dodgy log-kv (#12554)
1 parent c48ab37 commit 6d89f12

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

changelog.d/12554.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

synapse/handlers/device.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,12 @@ async def _handle_new_device_update_async(self) -> None:
683683
self.federation_sender.send_device_messages(
684684
host, immediate=False
685685
)
686-
log_kv(
687-
{"message": "sent device update to host", "host": host}
688-
)
686+
# TODO: when called, this isn't in a logging context.
687+
# This leads to log spam, sentry event spam, and massive
688+
# memory usage. See #12552.
689+
# log_kv(
690+
# {"message": "sent device update to host", "host": host}
691+
# )
689692

690693
if current_stream_id != stream_id:
691694
# Clear the set of hosts we've already sent to as we're

0 commit comments

Comments
 (0)