Merge pull request #4734 from matrix-org/rav/repl_debug
Add some debug to help with #4733
This commit is contained in:
commit
17009e689b
1
changelog.d/4734.misc
Normal file
1
changelog.d/4734.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Add some debug to help with #4733.
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue