git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
06d38d0
)
don't display UPnP errors while not in debug mode
author
Forrest Voight
<forrest@forre.st>
Wed, 3 Aug 2011 19:43:30 +0000 (15:43 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 3 Aug 2011 19:43:30 +0000 (15:43 -0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
fd0e45f
..
a034243
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-299,7
+299,8
@@
def main(args):
pm = yield portmapper.get_port_mapper()
yield pm._upnp.add_port_mapping(lan_ip, args.net.P2P_PORT, args.net.P2P_PORT, 'p2pool', 'TCP')
except:
- log.err()
+ if p2pool_init.DEBUG:
+ log.err()
yield deferral.sleep(random.expovariate(1/120))
if args.upnp: