made share punishing message not go to stderr and show not only in debug mode
authorForrest Voight <forrest@forre.st>
Wed, 31 Oct 2012 03:58:30 +0000 (23:58 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 31 Oct 2012 03:58:30 +0000 (23:58 -0400)
p2pool/data.py

index f770ad1..ef77a18 100644 (file)
@@ -714,8 +714,7 @@ class OkayTracker(forest.Tracker):
             best_share = self.items[best]
             punish, punish_reason = best_share.should_punish_reason(previous_block, bits, self, known_txs)
             if punish > 0:
-                if p2pool.DEBUG:
-                    print >>sys.stderr, 'Punishing share for %r! Jumping from %s to %s!' % (punish_reason, format_hash(best), format_hash(best_share.previous_hash))
+                print 'Punishing share for %r! Jumping from %s to %s!' % (punish_reason, format_hash(best), format_hash(best_share.previous_hash))
                 best = best_share.previous_hash
             
             timestamp_cutoff = min(int(time.time()), best_share.timestamp) - 3600