use "reason" instead of "error"/"validatorError" to log gossip ignore/reject reasons (#5839)
This commit is contained in:
parent
883518fdcc
commit
45b4b46041
|
@ -408,7 +408,7 @@ proc processAttestation*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping attestation", validationError = 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())
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ proc processSignedAggregateAndProof*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping aggregate", error = 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())
|
||||||
|
@ -488,7 +488,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", validationError = 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
|
||||||
|
@ -512,7 +512,7 @@ proc processAttesterSlashing*(
|
||||||
|
|
||||||
beacon_attester_slashings_received.inc()
|
beacon_attester_slashings_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping attester slashing", validationError = 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
|
||||||
|
@ -535,7 +535,7 @@ proc processProposerSlashing*(
|
||||||
|
|
||||||
beacon_proposer_slashings_received.inc()
|
beacon_proposer_slashings_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping proposer slashing", validationError = 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
|
||||||
|
@ -559,7 +559,7 @@ proc processSignedVoluntaryExit*(
|
||||||
|
|
||||||
beacon_voluntary_exits_received.inc()
|
beacon_voluntary_exits_received.inc()
|
||||||
else:
|
else:
|
||||||
debug "Dropping voluntary exit", error = 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
|
||||||
|
@ -605,7 +605,7 @@ proc processSyncCommitteeMessage*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping sync committee message", error = 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())
|
||||||
|
|
||||||
|
@ -650,7 +650,7 @@ proc processSignedContributionAndProof*(
|
||||||
|
|
||||||
ok()
|
ok()
|
||||||
else:
|
else:
|
||||||
debug "Dropping contribution", error = 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