diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-15 18:12:20 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-15 18:12:20 +0800 |
commit | eaf73b55bc02bba59bb471feaa465f8c5cf24d83 (patch) | |
tree | 34c1e61a1ed8f43355b4e326b5613e6ab7550b07 | |
parent | 5d2138a2b23ff410767fa7d26d4ab5777db6fcde (diff) | |
download | dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar.gz dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar.bz2 dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar.lz dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar.xz dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.tar.zst dexon-eaf73b55bc02bba59bb471feaa465f8c5cf24d83.zip |
miner: moved bad uncle logging to ridiculous log level. Closes #720
-rw-r--r-- | logger/verbosity.go | 2 | ||||
-rw-r--r-- | miner/worker.go | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/logger/verbosity.go b/logger/verbosity.go index 887b90f02..e052b80a3 100644 --- a/logger/verbosity.go +++ b/logger/verbosity.go @@ -7,4 +7,6 @@ const ( Core Debug Detail + + Ridiculousness = 100 ) 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]) |