do not log connections with no subscriptions
authorThomasV <thomasv@gitorious>
Wed, 2 May 2012 05:30:35 +0000 (09:30 +0400)
committerThomasV <thomasv@gitorious>
Wed, 2 May 2012 05:30:35 +0000 (09:30 +0400)
processor.py

index 837d78d..503492d 100644 (file)
@@ -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: