git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6347299
)
only print irc lines in debug mode
author
Forrest Voight
<forrest.voight@gmail.com>
Thu, 5 Apr 2012 22:46:32 +0000 (18:46 -0400)
committer
Forrest Voight
<forrest.voight@gmail.com>
Sat, 7 Apr 2012 21:16:53 +0000 (17:16 -0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
7b5721e
..
04214d9
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-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)