From: ThomasV Date: Wed, 2 May 2012 05:30:35 +0000 (+0400) Subject: do not log connections with no subscriptions X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=44b9b864a61e6d40575abe363e6f4cccf49f7613 do not log connections with no subscriptions --- diff --git a/processor.py b/processor.py index 837d78d..503492d 100644 --- a/processor.py +++ b/processor.py @@ -177,8 +177,10 @@ class Session: break else: addr = None - print timestr(), self.name, self.address, addr,\ - len(self.subscriptions), self.version + + if self.subscriptions: + print timestr(), self.name, self.address, addr,\ + len(self.subscriptions), self.version def stopped(self): with self.lock: