From a191f3fd904e9e2a36796efb19b83637038dfa0e Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Thu, 11 Jul 2019 13:12:26 -0700 Subject: [PATCH] add node_pubkey to vote warning (#5033) --- programs/vote_api/src/vote_state.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/vote_api/src/vote_state.rs b/programs/vote_api/src/vote_state.rs index 76333e6ebe..f5b1520c38 100644 --- a/programs/vote_api/src/vote_state.rs +++ b/programs/vote_api/src/vote_state.rs @@ -173,14 +173,14 @@ impl VoteState { for (slot, hash) in slot_hashes { if vote.slot == *slot { warn!( - "dropped vote {:?} matched slot {}, but not hash {:?}", - vote, *slot, *hash + "{} dropped vote {:?} matched slot {}, but not hash {:?}", + self.node_pubkey, vote, *slot, *hash ); } if vote.hash == *hash { warn!( - "dropped vote {:?} matched hash {:?}, but not slot {}", - vote, *hash, *slot, + "{} dropped vote {:?} matched hash {:?}, but not slot {}", + self.node_pubkey, vote, *slot, *hash ); } }