ensure reason field logging consistently uses string type (#5878)
This commit is contained in:
parent
a4680cb7fa
commit
134774e00d
|
@ -404,7 +404,7 @@ proc processAttestation*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping attestation", reason = v.error
|
debug "Dropping attestation", reason = $v.error
|
||||||
beacon_attestations_dropped.inc(1, [$v.error[0]])
|
beacon_attestations_dropped.inc(1, [$v.error[0]])
|
||||||
err(v.error())
|
err(v.error())
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ proc processSignedAggregateAndProof*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping aggregate", reason = v.error
|
debug "Dropping aggregate", reason = $v.error
|
||||||
beacon_aggregates_dropped.inc(1, [$v.error[0]])
|
beacon_aggregates_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
err(v.error())
|
err(v.error())
|
||||||
|
@ -484,7 +484,7 @@ proc processBlsToExecutionChange*(
|
||||||
self.validatorChangePool[].addMessage(
|
self.validatorChangePool[].addMessage(
|
||||||
blsToExecutionChange, src == MsgSource.api)
|
blsToExecutionChange, src == MsgSource.api)
|
||||||
else:
|
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]])
|
beacon_attester_slashings_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
@ -508,7 +508,7 @@ proc processAttesterSlashing*(
|
||||||
|
|
||||||
beacon_attester_slashings_received.inc()
|
beacon_attester_slashings_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping attester slashing", reason = v.error
|
debug "Dropping attester slashing", reason = $v.error
|
||||||
beacon_attester_slashings_dropped.inc(1, [$v.error[0]])
|
beacon_attester_slashings_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
v
|
v
|
||||||
|
@ -531,7 +531,7 @@ proc processProposerSlashing*(
|
||||||
|
|
||||||
beacon_proposer_slashings_received.inc()
|
beacon_proposer_slashings_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping proposer slashing", reason = v.error
|
debug "Dropping proposer slashing", reason = $v.error
|
||||||
beacon_proposer_slashings_dropped.inc(1, [$v.error[0]])
|
beacon_proposer_slashings_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
v
|
v
|
||||||
|
@ -555,7 +555,7 @@ proc processSignedVoluntaryExit*(
|
||||||
|
|
||||||
beacon_voluntary_exits_received.inc()
|
beacon_voluntary_exits_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping voluntary exit", reason = v.error
|
debug "Dropping voluntary exit", reason = $v.error
|
||||||
beacon_voluntary_exits_dropped.inc(1, [$v.error[0]])
|
beacon_voluntary_exits_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
v
|
v
|
||||||
|
@ -601,7 +601,7 @@ proc processSyncCommitteeMessage*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
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]])
|
beacon_sync_committee_messages_dropped.inc(1, [$v.error[0]])
|
||||||
err(v.error())
|
err(v.error())
|
||||||
|
|
||||||
|
@ -646,7 +646,7 @@ proc processSignedContributionAndProof*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping contribution", reason = v.error
|
debug "Dropping contribution", reason = $v.error
|
||||||
beacon_sync_committee_contributions_dropped.inc(1, [$v.error[0]])
|
beacon_sync_committee_contributions_dropped.inc(1, [$v.error[0]])
|
||||||
|
|
||||||
err(v.error())
|
err(v.error())
|
||||||
|
|
Loading…
Reference in New Issue