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

Commit

Permalink
Fix missing log context
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Mar 25, 2021
1 parent 74c0786 commit 780130f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion synapse/handlers/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@

from synapse.api.errors import AuthError, ShadowBanError, SynapseError
from synapse.appservice import ApplicationService
from synapse.metrics.background_process_metrics import run_as_background_process
from synapse.metrics.background_process_metrics import (
run_as_background_process,
wrap_as_background_process,
)
from synapse.replication.tcp.streams import TypingStream
from synapse.types import JsonDict, Requester, UserID, get_domain_from_id
from synapse.util.caches.stream_change_cache import StreamChangeCache
Expand Down Expand Up @@ -86,6 +89,7 @@ def _reset(self) -> None:
self._member_last_federation_poke = {}
self.wheel_timer = WheelTimer(bucket_size=5000)

@wrap_as_background_process("typing.run_as_background_process")
def _handle_timeouts(self) -> None:
logger.debug("Checking for typing timeouts")

Expand Down

0 comments on commit 780130f

Please sign in to comment.