don't flood on exceptions in network handling code
authorForrest Voight <forrest@forre.st>
Fri, 5 Aug 2011 00:21:36 +0000 (20:21 -0400)
committerForrest Voight <forrest@forre.st>
Fri, 5 Aug 2011 00:21:36 +0000 (20:21 -0400)
p2pool/bitcoin/p2p.py

index 56f1642..d160479 100644 (file)
@@ -90,7 +90,7 @@ class BaseProtocol(protocol.Protocol):
             try:
                 handler(**payload2)
             except:
-                print 'RECV', command, checksum.encode('hex') if checksum is not None else None, repr(payload.encode('hex')), len(payload)
+                print 'RECV', command, len(payload), checksum.encode('hex')[:1000]
                 log.err(None, 'Error handling message: (see RECV line)')
                 continue