Skip to content

Commit 4ea23ee

Browse files
committed
Improve scary log
1 parent e741cea commit 4ea23ee

File tree

1 file changed

+6
-5
lines changed
  • validator_client/lighthouse_validator_store/src

1 file changed

+6
-5
lines changed

validator_client/lighthouse_validator_store/src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,12 @@ impl<T: SlotClock + 'static, E: EthSpec> LighthouseValidatorStore<T, E> {
661661
);
662662
}
663663
Err(e) => {
664-
// FIXME(sproul): remove attestation data + make this error less scary
665-
crit!(
666-
attestation = format!("{:?}", attestation.data()),
667-
error = format!("{:?}", e),
668-
"Not signing slashable attestation"
664+
warn!(
665+
slot = %attestation.data().slot,
666+
block_root = ?attestation.data().beacon_block_root,
667+
public_key = ?validator_pubkey,
668+
error = ?e,
669+
"Skipping signing of slashable attestation"
669670
);
670671
validator_metrics::inc_counter_vec(
671672
&validator_metrics::SIGNED_ATTESTATIONS_TOTAL,

0 commit comments

Comments
 (0)