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

Commit 68b40c3

Browse files
committed
Remove dead code.
This code is never called as of #8607.
1 parent 895e043 commit 68b40c3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

synapse/logging/context.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@ def __str__(self):
203203
def copy_to(self, record):
204204
pass
205205

206-
def copy_to_twisted_log_entry(self, record):
207-
record["request"] = None
208-
record["scope"] = None
209-
210206
def start(self, rusage: "Optional[resource._RUsage]"):
211207
pass
212208

@@ -372,13 +368,6 @@ def copy_to(self, record) -> None:
372368
# we also track the current scope:
373369
record.scope = self.scope
374370

375-
def copy_to_twisted_log_entry(self, record) -> None:
376-
"""
377-
Copy logging fields from this context to a Twisted log record.
378-
"""
379-
record["request"] = self.request
380-
record["scope"] = self.scope
381-
382371
def start(self, rusage: "Optional[resource._RUsage]") -> None:
383372
"""
384373
Record that this logcontext is currently running.

0 commit comments

Comments
 (0)