Commit eaf73b55 authored by obscuren's avatar obscuren

miner: moved bad uncle logging to ridiculous log level. Closes #720

parent 5d2138a2
...@@ -7,4 +7,6 @@ const ( ...@@ -7,4 +7,6 @@ const (
Core Core
Debug Debug
Detail Detail
Ridiculousness = 100
) )
...@@ -299,8 +299,11 @@ func (self *worker) commitNewWork() { ...@@ -299,8 +299,11 @@ func (self *worker) commitNewWork() {
} }
if err := self.commitUncle(uncle.Header()); err != nil { if err := self.commitUncle(uncle.Header()); err != nil {
glog.V(logger.Debug).Infof("Bad uncle found and will be removed (%x)\n", hash[:4]) if glog.V(logger.Ridiculousness) {
glog.V(logger.Debug).Infoln(uncle) 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) badUncles = append(badUncles, hash)
} else { } else {
glog.V(logger.Debug).Infof("commiting %x as uncle\n", hash[:4]) glog.V(logger.Debug).Infof("commiting %x as uncle\n", hash[:4])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment