1
0

Add logging when sending error

This commit is contained in:
Erik Johnston
2019-02-25 15:55:21 +00:00
committed by hera
parent 17009e689b
commit b50fe65a22

View File

@@ -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()