From 0a07c8f1312f2f628c78dba289c6afdebfef45d2 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Wed, 10 Aug 2016 19:39:28 -0500 Subject: [PATCH] log on closed/lost connection --- lbrynet/reflector/client/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lbrynet/reflector/client/client.py b/lbrynet/reflector/client/client.py index 72d353085..0fe2c8ce1 100644 --- a/lbrynet/reflector/client/client.py +++ b/lbrynet/reflector/client/client.py @@ -263,9 +263,7 @@ class LBRYFileReflectorClientFactory(ClientFactory): def clientConnectionLost(self, connector, reason): """If we get disconnected, reconnect to server.""" - connector.connect() + log.debug("connection lost: %s", reason) def clientConnectionFailed(self, connector, reason): - print("connection failed:", reason) - from twisted.internet import reactor - reactor.stop() + log.debug("connection failed: %s", reason)