From b50fe65a22d734cc7c3cb9b60f56be4bc6ba1070 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 25 Feb 2019 15:55:21 +0000 Subject: Add logging when sending error --- synapse/replication/tcp/protocol.py | 1 + 1 file changed, 1 insertion(+) (limited to 'synapse/replication/tcp/protocol.py') 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() -- cgit 1.5.1