From 5fcea2820ad888e610fa269444d44b7dacd7d6bc Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 19 May 2022 22:31:57 +0000 Subject: [PATCH] include hash in log --- web3-proxy-minimal/src/connections.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3-proxy-minimal/src/connections.rs b/web3-proxy-minimal/src/connections.rs index 0a465c5f..a9179287 100644 --- a/web3-proxy-minimal/src/connections.rs +++ b/web3-proxy-minimal/src/connections.rs @@ -161,7 +161,7 @@ impl Web3Connections { match new_block_num.cmp(&pending_synced_connections.head_block_num) { cmp::Ordering::Greater => { // the rpc's newest block is the new overall best block - info!("new head"); + info!("new head: {:?}", new_block_hash); pending_synced_connections.inner.clear(); pending_synced_connections.inner.insert(rpc_id); @@ -240,7 +240,7 @@ impl Web3Connections { let synced_connections = Arc::new(pending_synced_connections.clone()); info!( - "new synced_connections for {:?}: {:?}", + "new synced_connections for {}: {:?}", synced_connections.head_block_hash, synced_connections.inner );