Default to RUST_BACKTRACE=1 for more informative validator logs

This commit is contained in:
Michael Vines 2020-04-15 22:21:05 -07:00
parent a7ed33b552
commit 4ac15e68cf
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ use solana_sdk::{
};
use std::{
collections::HashSet,
env,
fs::{self, File},
net::{SocketAddr, TcpListener, UdpSocket},
path::PathBuf,
@ -937,6 +938,11 @@ pub fn main() {
.join(","),
);
// Default to RUST_BACKTRACE=1 for more informative validator logs
if env::var_os("RUST_BACKTRACE").is_none() {
env::set_var("RUST_BACKTRACE", "1")
}
info!("{} {}", crate_name!(), solana_clap_utils::version!());
info!("Starting validator with: {:#?}", std::env::args_os());