From 99a97b700855a390cce88880d826a5653586189c Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 26 Aug 2019 19:51:17 -0700 Subject: [PATCH] Add more details to error log (#5637) --- bench-exchange/src/bench.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bench-exchange/src/bench.rs b/bench-exchange/src/bench.rs index a2bcb00c86..963547ad0f 100644 --- a/bench-exchange/src/bench.rs +++ b/bench-exchange/src/bench.rs @@ -764,7 +764,7 @@ pub fn fund_keys(client: &dyn Client, source: &Keypair, dests: &[Arc], retries += 1; debug!(" Retry {:?}", retries); if retries >= 10 { - error!(" Too many retries, give up"); + error!("fund_keys: Too many retries ({}), give up", retries); exit(1); } } @@ -843,7 +843,10 @@ pub fn create_token_accounts(client: &dyn Client, signers: &[Arc], acco retries += 1; debug!(" Retry {:?}", retries); if retries >= 20 { - error!(" Too many retries, give up"); + error!( + "create_token_accounts: Too many retries ({}), give up", + retries + ); exit(1); } } @@ -953,7 +956,7 @@ pub fn airdrop_lamports(client: &dyn Client, drone_addr: &SocketAddr, id: &Keypa debug!(" Retry..."); tries += 1; if tries > 50 { - error!("Too many retries, give up"); + error!("airdrop_lamports: Too many retries ({}), give up", tries); exit(1); } sleep(Duration::from_secs(2));