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

Commit

Permalink
Comment out dodgy log-kv (#12554)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Apr 26, 2022
1 parent c48ab37 commit 6d89f12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/12554.bugfix
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 6 additions & 3 deletions synapse/handlers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,12 @@ async def _handle_new_device_update_async(self) -> None:
self.federation_sender.send_device_messages(
host, immediate=False
)
log_kv(
{"message": "sent device update to host", "host": host}
)
# TODO: when called, this isn't in a logging context.
# 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:
# Clear the set of hosts we've already sent to as we're
Expand Down

0 comments on commit 6d89f12

Please sign in to comment.