From a4f8b4debee4f3d73493438c8bece0cb33150e7b Mon Sep 17 00:00:00 2001 From: Nicholas Pettas Date: Mon, 19 Feb 2024 08:36:24 -0800 Subject: [PATCH] reduce log levels for llr warnings to debug --- gossip/c_llr_callbacks.go | 4 ++-- utils/bitmap/bitset.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gossip/c_llr_callbacks.go b/gossip/c_llr_callbacks.go index 59091c1b1..fa3783390 100644 --- a/gossip/c_llr_callbacks.go +++ b/gossip/c_llr_callbacks.go @@ -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) } } } @@ -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) } } } diff --git a/utils/bitmap/bitset.go b/utils/bitmap/bitset.go index 017fac2ab..88ec29dc5 100644 --- a/utils/bitmap/bitset.go +++ b/utils/bitmap/bitset.go @@ -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 } @@ -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 } @@ -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 }