mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Do not log zero sync committee messages (#13662)
This commit is contained in:
parent
ddb321e0ce
commit
d9d2ee75de
@ -138,7 +138,9 @@ func (v *validator) LogSubmittedAtts(slot primitives.Slot) {
|
||||
|
||||
// LogSubmittedSyncCommitteeMessages logs info about submitted sync committee messages.
|
||||
func (v *validator) LogSubmittedSyncCommitteeMessages() {
|
||||
log.WithField("messages", v.syncCommitteeStats.totalMessagesSubmitted).Debug("Submitted sync committee messages successfully to beacon node")
|
||||
// Reset the amount.
|
||||
atomic.StoreUint64(&v.syncCommitteeStats.totalMessagesSubmitted, 0)
|
||||
if v.syncCommitteeStats.totalMessagesSubmitted > 0 {
|
||||
log.WithField("messages", v.syncCommitteeStats.totalMessagesSubmitted).Debug("Submitted sync committee messages successfully to beacon node")
|
||||
// Reset the amount.
|
||||
atomic.StoreUint64(&v.syncCommitteeStats.totalMessagesSubmitted, 0)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user