From: Forrest Voight Date: Wed, 31 Oct 2012 03:58:30 +0000 (-0400) Subject: made share punishing message not go to stderr and show not only in debug mode X-Git-Tag: 9.0~21 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=c6d52bfca35a60481253266682459650c5c75163 made share punishing message not go to stderr and show not only in debug mode --- diff --git a/p2pool/data.py b/p2pool/data.py index f770ad1..ef77a18 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -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