ensure reason field logging consistently uses string type (#5878)

This commit is contained in:
tersec 2024-02-10 02:50:31 +00:00 committed by GitHub
parent a4680cb7fa
commit 134774e00d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -404,7 +404,7 @@ proc processAttestation*(
ok()
else:
debug "Dropping attestation", reason = v.error
debug "Dropping attestation", reason = $v.error
beacon_attestations_dropped.inc(1, [$v.error[0]])
err(v.error())
@ -460,7 +460,7 @@ proc processSignedAggregateAndProof*(
ok()
else:
debug "Dropping aggregate", reason = v.error
debug "Dropping aggregate", reason = $v.error
beacon_aggregates_dropped.inc(1, [$v.error[0]])
err(v.error())
@ -484,7 +484,7 @@ proc processBlsToExecutionChange*(
self.validatorChangePool[].addMessage(
blsToExecutionChange, src == MsgSource.api)
else:
debug "Dropping BLS to execution change", reason = v.error
debug "Dropping BLS to execution change", reason = $v.error
beacon_attester_slashings_dropped.inc(1, [$v.error[0]])
return v
@ -508,7 +508,7 @@ proc processAttesterSlashing*(
beacon_attester_slashings_received.inc()
else:
debug "Dropping attester slashing", reason = v.error
debug "Dropping attester slashing", reason = $v.error
beacon_attester_slashings_dropped.inc(1, [$v.error[0]])
v
@ -531,7 +531,7 @@ proc processProposerSlashing*(
beacon_proposer_slashings_received.inc()
else:
debug "Dropping proposer slashing", reason = v.error
debug "Dropping proposer slashing", reason = $v.error
beacon_proposer_slashings_dropped.inc(1, [$v.error[0]])
v
@ -555,7 +555,7 @@ proc processSignedVoluntaryExit*(
beacon_voluntary_exits_received.inc()
else:
debug "Dropping voluntary exit", reason = v.error
debug "Dropping voluntary exit", reason = $v.error
beacon_voluntary_exits_dropped.inc(1, [$v.error[0]])
v
@ -601,7 +601,7 @@ proc processSyncCommitteeMessage*(
ok()
else:
debug "Dropping sync committee message", reason = v.error
debug "Dropping sync committee message", reason = $v.error
beacon_sync_committee_messages_dropped.inc(1, [$v.error[0]])
err(v.error())
@ -646,7 +646,7 @@ proc processSignedContributionAndProof*(
ok()
else:
debug "Dropping contribution", reason = v.error
debug "Dropping contribution", reason = $v.error
beacon_sync_committee_contributions_dropped.inc(1, [$v.error[0]])
err(v.error())