diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-01-18 13:06:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 13:06:04 +0000 |
commit | 251b5567ecc8fb3d6debaa3f77f6ec2620877d36 (patch) | |
tree | e3621904f7c20ba45688163488cd17c8922b8e1d /synapse/handlers/federation_event.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-251b5567ecc8fb3d6debaa3f77f6ec2620877d36.tar.xz |
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.
Diffstat (limited to 'synapse/handlers/federation_event.py')
-rw-r--r-- | synapse/handlers/federation_event.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 11771f3c9c..3905f60b3a 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -56,7 +56,6 @@ from synapse.events import EventBase from synapse.events.snapshot import EventContext from synapse.federation.federation_client import InvalidResponseError from synapse.logging.context import nested_logging_context, run_in_background -from synapse.logging.utils import log_function from synapse.metrics.background_process_metrics import run_as_background_process from synapse.replication.http.devices import ReplicationUserDevicesResyncRestServlet from synapse.replication.http.federation import ( @@ -275,7 +274,6 @@ class FederationEventHandler: await self._process_received_pdu(origin, pdu, state=None) - @log_function async def on_send_membership_event( self, origin: str, event: EventBase ) -> Tuple[EventBase, EventContext]: @@ -472,7 +470,6 @@ class FederationEventHandler: return await self.persist_events_and_notify(room_id, [(event, context)]) - @log_function async def backfill( self, dest: str, room_id: str, limit: int, extremities: Collection[str] ) -> None: |