Add logging when sending error
parent
17009e689b
commit
b50fe65a22
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue