Skip to content

Commit

Permalink
reduce log levels for llr warnings to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Feb 19, 2024
1 parent 8ed03be commit a4f8b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gossip/c_llr_callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *Service) processBlockVote(block idx.Block, epoch idx.Epoch, bv hash.Has
return s.store.GetLlrBlockResult(idx.Block(u)) != nil
}))
} else if *wonBr != bv {
s.Log.Error("LLR voting doublesign is met", "block", block)
s.Log.Debug("LLR voting doublesign is met", "block", block)
}
}
}
Expand Down Expand Up @@ -181,7 +181,7 @@ func (s *Service) processRawEpochVote(epoch idx.Epoch, ev hash.Hash, val idx.Val
return s.store.GetLlrEpochResult(idx.Epoch(u)) != nil
}))
} else if *wonEr != ev {
s.Log.Error("LLR voting doublesign is met", "epoch", epoch)
s.Log.Debug("LLR voting doublesign is met", "epoch", epoch)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions utils/bitmap/bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (s Set) Put(i int) {
bi := i % 8

if yi >= len(s) {
log.Warn("Index out of range", "index", i, "max", len(s)*8)
log.Debug("Index out of range", "index", i, "max", len(s)*8)
return
}

Expand All @@ -29,7 +29,7 @@ func (s Set) Del(i int) {
bi := i % 8

if yi >= len(s) {
log.Warn("Index out of range", "index", i, "max", len(s)*8)
log.Debug("Index out of range", "index", i, "max", len(s)*8)
return
}

Expand All @@ -41,7 +41,7 @@ func (s Set) Has(i int) bool {
bi := i % 8

if yi >= len(s) {
log.Warn("Index out of range", "index", i, "max", len(s)*8)
log.Debug("Index out of range", "index", i, "max", len(s)*8)
return false
}

Expand Down

2 comments on commit a4f8b4d

@jacklevin74
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@Anonymusss12e
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello jack we need x1:)

Please sign in to comment.