Default to RUST_BACKTRACE=1 for more informative validator logs
This commit is contained in:
parent
a7ed33b552
commit
4ac15e68cf
|
@ -35,6 +35,7 @@ use solana_sdk::{
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
|
env,
|
||||||
fs::{self, File},
|
fs::{self, File},
|
||||||
net::{SocketAddr, TcpListener, UdpSocket},
|
net::{SocketAddr, TcpListener, UdpSocket},
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
|
@ -937,6 +938,11 @@ pub fn main() {
|
||||||
.join(","),
|
.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!("{} {}", crate_name!(), solana_clap_utils::version!());
|
||||||
info!("Starting validator with: {:#?}", std::env::args_os());
|
info!("Starting validator with: {:#?}", std::env::args_os());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue