diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-04-08 08:01:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 08:01:14 -0400 |
commit | 48d44ab1425ffac721b7d407823c2315cda1929a (patch) | |
tree | bb8c741b7bf163c911ed57880a5e84547c260f9b /synapse/replication | |
parent | Don't report anything from GaugeBucketCollector metrics until data is present... (diff) | |
download | synapse-48d44ab1425ffac721b7d407823c2315cda1929a.tar.xz |
Record more information into structured logs. (#9654)
Records additional request information into the structured logs, e.g. the requester, IP address, etc.
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/tcp/protocol.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py index e829add257..d10d574246 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py @@ -184,8 +184,9 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver): # a logcontext which we use for processing incoming commands. We declare it as a # background process so that the CPU stats get reported to prometheus. - ctx_name = "replication-conn-%s" % self.conn_id - self._logging_context = BackgroundProcessLoggingContext(ctx_name, ctx_name) + self._logging_context = BackgroundProcessLoggingContext( + "replication-conn", self.conn_id + ) def connectionMade(self): logger.info("[%s] Connection established", self.id()) |