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

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
This code is never called as of #8607.
  • Loading branch information
clokep committed Dec 14, 2020
1 parent 895e043 commit 68b40c3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions synapse/logging/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ def __str__(self):
def copy_to(self, record):
pass

def copy_to_twisted_log_entry(self, record):
record["request"] = None
record["scope"] = None

def start(self, rusage: "Optional[resource._RUsage]"):
pass

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

def copy_to_twisted_log_entry(self, record) -> None:
"""
Copy logging fields from this context to a Twisted log record.
"""
record["request"] = self.request
record["scope"] = self.scope

def start(self, rusage: "Optional[resource._RUsage]") -> None:
"""
Record that this logcontext is currently running.
Expand Down

0 comments on commit 68b40c3

Please sign in to comment.