only print irc lines in debug mode
authorForrest Voight <forrest.voight@gmail.com>
Thu, 5 Apr 2012 22:46:32 +0000 (18:46 -0400)
committerForrest Voight <forrest.voight@gmail.com>
Sat, 7 Apr 2012 21:16:53 +0000 (17:16 -0400)
p2pool/main.py

index 7b5721e..04214d9 100644 (file)
@@ -710,7 +710,8 @@ def main(args, net, datadir_path, merged_urls, worker_endpoint):
                 nickname = 'p2pool%02i' % (random.randrange(100),)
                 channel = net.ANNOUNCE_CHANNEL
                 def lineReceived(self, line):
-                    print repr(line)
+                    if p2pool.DEBUG:
+                        print repr(line)
                     irc.IRCClient.lineReceived(self, line)
                 def signedOn(self):
                     irc.IRCClient.signedOn(self)