Remove #4733 debug (#4767)

We don't need any of this stuff now; this brings protocol.py back into line
with develop for the hotfixes branch.
This commit is contained in:
Richard van der Hoff 2019-03-04 14:00:03 +00:00 committed by GitHub
parent bf3f8b8855
commit ed12338f35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View file

@ -1 +0,0 @@
Add some debug to help with #4733.

View file

@ -52,7 +52,6 @@ indicate which side is sending, these are *not* included on the wire::
import fcntl
import logging
import struct
import traceback
from collections import defaultdict
from six import iteritems, iterkeys
@ -242,7 +241,6 @@ 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()
@ -335,8 +333,6 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
we or the remote has closed the connection)
"""
logger.info("[%s] Stop producing", self.id())
# debug for #4733
logger.info("Traceback: %s", "".join(traceback.format_stack()))
self.on_connection_closed()
def connectionLost(self, reason):