Surface faucet start failures to the user of solana-test-validator
This commit is contained in:
committed by
mergify[bot]
parent
fdfc0f409d
commit
8993ac0c74
@@ -20,7 +20,10 @@ fn redirect_stderr(filename: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn start_logger(logfile: Option<String>) -> Option<JoinHandle<()>> {
|
||||
// Redirect stderr to a file with support for logrotate by sending a SIGUSR1 to the process.
|
||||
//
|
||||
// Upon success, future `log` macros and `eprintln!()` can be found in the specified log file.
|
||||
pub fn redirect_stderr_to_file(logfile: Option<String>) -> Option<JoinHandle<()>> {
|
||||
// Default to RUST_BACKTRACE=1 for more informative validator logs
|
||||
if env::var_os("RUST_BACKTRACE").is_none() {
|
||||
env::set_var("RUST_BACKTRACE", "1")
|
||||
|
Reference in New Issue
Block a user