From 44b9b864a61e6d40575abe363e6f4cccf49f7613 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 2 May 2012 09:30:35 +0400 Subject: [PATCH] do not log connections with no subscriptions --- processor.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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: -- 1.7.1