From eaf73b55bc02bba59bb471feaa465f8c5cf24d83 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 15 Apr 2015 12:12:20 +0200 Subject: miner: moved bad uncle logging to ridiculous log level. Closes #720 --- miner/worker.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'miner') diff --git a/miner/worker.go b/miner/worker.go index 141294385..916481973 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -299,8 +299,11 @@ func (self *worker) commitNewWork() { } if err := self.commitUncle(uncle.Header()); err != nil { - glog.V(logger.Debug).Infof("Bad uncle found and will be removed (%x)\n", hash[:4]) - glog.V(logger.Debug).Infoln(uncle) + if glog.V(logger.Ridiculousness) { + glog.V(logger.Detail).Infof("Bad uncle found and will be removed (%x)\n", hash[:4]) + glog.V(logger.Detail).Infoln(uncle) + } + badUncles = append(badUncles, hash) } else { glog.V(logger.Debug).Infof("commiting %x as uncle\n", hash[:4]) -- cgit