Merge pull request #4734 from matrix-org/rav/repl_debug

Add some debug to help with #4733
This commit is contained in:
Erik Johnston 2019-02-25 15:52:45 +00:00 committed by GitHub
commit 17009e689b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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):