summary refs log tree commit diff
path: root/synapse/replication/tcp/protocol.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-02-25 15:55:21 +0000
committerhera <matrix@hera.matrix.org>2019-02-25 15:55:21 +0000
commitb50fe65a22d734cc7c3cb9b60f56be4bc6ba1070 (patch)
tree2323a63362c230985792fb2cf398c251c6c8af6e /synapse/replication/tcp/protocol.py
parentMerge pull request #4734 from matrix-org/rav/repl_debug (diff)
downloadsynapse-b50fe65a22d734cc7c3cb9b60f56be4bc6ba1070.tar.xz
Add logging when sending error
Diffstat (limited to 'synapse/replication/tcp/protocol.py')
-rw-r--r--synapse/replication/tcp/protocol.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py

index 4f4d9915a8..75c9e8355f 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py
@@ -242,6 +242,7 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver): def send_error(self, error_string, *args): """Send an error to remote and close the connection. """ + logger.error("[%s] Sending error: %s", self.id(), error_string % args) self.send_command(ErrorCommand(error_string % args)) self.close()