Add some debug to help with #4733

pull/4734/head
Richard van der Hoff 2019-02-25 14:36:30 +00:00
parent d14e94bae4
commit 5d2f755d3f
2 changed files with 4 additions and 0 deletions

1
changelog.d/4734.misc Normal file
View File

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

View File

@ -52,6 +52,7 @@ 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
@ -323,6 +324,8 @@ 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):