mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 06:34:10 -04:00
Remove log_function
and its uses (#11761)
I've never found this terribly useful. I think it was added in the early days of Synapse, without much thought as to what would actually be useful to log, and has just been cargo-culted ever since. Rather, it tends to clutter up debug logs with useless information.
This commit is contained in:
parent
47961ea855
commit
251b5567ec
13 changed files with 1 additions and 155 deletions
|
@ -55,7 +55,6 @@ from synapse.api.presence import UserPresenceState
|
|||
from synapse.appservice import ApplicationService
|
||||
from synapse.events.presence_router import PresenceRouter
|
||||
from synapse.logging.context import run_in_background
|
||||
from synapse.logging.utils import log_function
|
||||
from synapse.metrics import LaterGauge
|
||||
from synapse.metrics.background_process_metrics import run_as_background_process
|
||||
from synapse.replication.http.presence import (
|
||||
|
@ -1542,7 +1541,6 @@ class PresenceEventSource(EventSource[int, UserPresenceState]):
|
|||
self.clock = hs.get_clock()
|
||||
self.store = hs.get_datastore()
|
||||
|
||||
@log_function
|
||||
async def get_new_events(
|
||||
self,
|
||||
user: UserID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue