From 5d2f755d3f6669f4710eacc5a76915d185242ab7 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 25 Feb 2019 14:36:30 +0000 Subject: Add some debug to help with #4733 --- synapse/replication/tcp/protocol.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synapse/replication/tcp/protocol.py') diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py index 0b3fe6cbf5..4f4d9915a8 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py @@ -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): -- cgit 1.5.1