From e45c642f5d24a36d5c43d320eefa1d9b96770959 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 15 Oct 2024 14:52:54 +0100 Subject: [PATCH] Reduce log level of successful sync comittees. --- CHANGELOG.md | 1 + services/controller/standard/events.go | 24 +++++++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3b1b34..38b4ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ 1.9.1: - ensure that secondary validator registrations take place for all accounts + - reduce the log level of successful sync committee duties 1.9.0: - allow Vouch to start with some consensus nodes unavailable diff --git a/services/controller/standard/events.go b/services/controller/standard/events.go index c098b7a..bc466f3 100644 --- a/services/controller/standard/events.go +++ b/services/controller/standard/events.go @@ -435,11 +435,21 @@ func (s *Service) VerifySyncCommitteeMessages(ctx context.Context, data any) { includedCommitteeIndices = append(includedCommitteeIndices, uint64(committeeIndex)) } } - log.Debug().Uints64("incorrect_validator_indices", []uint64{}). - Uints64("incorrect_committee_indices", []uint64{}). - Uints64("missing_validator_indices", missingValidatorIndices). - Uints64("missing_committee_indices", missingCommitteeIndices). - Uints64("included_validator_indices", includedValidatorIndices). - Uints64("included_committee_indices", includedCommitteeIndices). - Msg("Verifying sync committee messages for validators complete") + if len(missingValidatorIndices) == 0 { + log.Trace().Uints64("incorrect_validator_indices", []uint64{}). + Uints64("incorrect_committee_indices", []uint64{}). + Uints64("missing_validator_indices", missingValidatorIndices). + Uints64("missing_committee_indices", missingCommitteeIndices). + Uints64("included_validator_indices", includedValidatorIndices). + Uints64("included_committee_indices", includedCommitteeIndices). + Msg("Verifying sync committee messages for validators complete") + } else { + log.Debug().Uints64("incorrect_validator_indices", []uint64{}). + Uints64("incorrect_committee_indices", []uint64{}). + Uints64("missing_validator_indices", missingValidatorIndices). + Uints64("missing_committee_indices", missingCommitteeIndices). + Uints64("included_validator_indices", includedValidatorIndices). + Uints64("included_committee_indices", includedCommitteeIndices). + Msg("Verifying sync committee messages for validators complete") + } }