Skip to content

Commit

Permalink
debug: log ledger logs
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-schaaf committed Mar 25, 2022
1 parent db71c1c commit c5ff212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c5ff212

Please sign in to comment.