mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-13 20:32:48 -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
|
@ -39,7 +39,6 @@ from synapse.api.room_versions import RoomVersions
|
|||
from synapse.crypto.event_signing import compute_event_reference_hash
|
||||
from synapse.events import EventBase # noqa: F401
|
||||
from synapse.events.snapshot import EventContext # noqa: F401
|
||||
from synapse.logging.utils import log_function
|
||||
from synapse.storage._base import db_to_json, make_in_list_sql_clause
|
||||
from synapse.storage.database import (
|
||||
DatabasePool,
|
||||
|
@ -328,7 +327,6 @@ class PersistEventsStore:
|
|||
|
||||
return existing_prevs
|
||||
|
||||
@log_function
|
||||
def _persist_events_txn(
|
||||
self,
|
||||
txn: LoggingTransaction,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue