Add logging when sending error

pull/4767/head
Erik Johnston 2019-02-25 15:55:21 +00:00 committed by hera
parent 17009e689b
commit b50fe65a22
1 changed files with 1 additions and 0 deletions

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