From 5629126f45b30688132a9241cee85c88d7920520 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 5 Aug 2020 01:49:52 +0000 Subject: [PATCH] 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 --- beacon_node/network/src/router/processor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/beacon_node/network/src/router/processor.rs b/beacon_node/network/src/router/processor.rs index ce858b6f92..23199f86ed 100644 --- a/beacon_node/network/src/router/processor.rs +++ b/beacon_node/network/src/router/processor.rs @@ -596,6 +596,7 @@ impl Processor { 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),