Add reason to invalid attestation log (#1460)

## Issue Addressed

NA

## Proposed Changes

Adds an extra field to a debug log so we can see *why* an attestation was invalid.

## Additional Info

NA
This commit is contained in:
Paul Hauner 2020-08-05 01:49:52 +00:00
parent 20ee893969
commit 5629126f45

View File

@ -596,6 +596,7 @@ impl<T: BeaconChainTypes> Processor<T> {
debug!(
self.log,
"Invalid attestation from network";
"reason" => format!("{:?}", error),
"block" => format!("{}", beacon_block_root),
"peer_id" => peer_id.to_string(),
"type" => format!("{:?}", attestation_type),