From 7b07dac6b1edb9b5bb003c85164b6ca4439b56d3 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 15 Oct 2024 15:01:04 +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 1fec57b..587f158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ dev: 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") + } }