Skip to content

Commit

Permalink
miner: moved bad uncle logging to ridiculous log level. Closes #720
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Apr 15, 2015
1 parent 5d2138a commit eaf73b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions logger/verbosity.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ const (
Core
Debug
Detail

Ridiculousness = 100
)
7 changes: 5 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit eaf73b5

Please sign in to comment.