display peer address in "Processing shares" message
authorForrest Voight <forrest.voight@gmail.com>
Mon, 30 Jan 2012 14:52:49 +0000 (09:52 -0500)
committerForrest Voight <forrest.voight@gmail.com>
Mon, 30 Jan 2012 14:53:26 +0000 (09:53 -0500)
p2pool/main.py

index 19d797f..f65c4ca 100644 (file)
@@ -215,7 +215,7 @@ def main(args, net, datadir_path):
         class Node(p2p.Node):
             def handle_shares(self, shares, peer):
                 if len(shares) > 5:
-                    print 'Processing %i shares...' % (len(shares),)
+                    print 'Processing %i shares from %s...' % (len(shares), '%s:%i' % peer.addr if peer is not None else None)
                 
                 new_count = 0
                 for share in shares: