From c5ff212d943f0040f0b4e23e423ff02a8df63c89 Mon Sep 17 00:00:00 2001 From: Paul Schaaf Date: Fri, 25 Mar 2022 14:20:43 -0400 Subject: [PATCH] debug: log ledger logs --- cli/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 01864658d1..6858270c15 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -2250,8 +2250,9 @@ fn start_test_validator( if count == ms_wait { eprintln!( "Unable to get recent blockhash. Test validator does not look started. Check {} for errors. Consider increasing [test.startup_wait] in Anchor.toml.", - test_ledger_log_filename + &test_ledger_log_filename ); + println!("{}", fs::read_to_string(test_ledger_log_filename)?); validator_handle.kill()?; std::process::exit(1); }