made share punishing message not go to stderr and show not only in debug mode
[p2pool.git] / 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