mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
miner: moved bad uncle logging to ridiculous log level. Closes #720
This commit is contained in:
parent
5d2138a2b2
commit
eaf73b55bc
@ -7,4 +7,6 @@ const (
|
||||
Core
|
||||
Debug
|
||||
Detail
|
||||
|
||||
Ridiculousness = 100
|
||||
)
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user