Merge #10332
10332: minor: Allow overwriting RUST_BACKTRACE for the server manually r=jonas-schievink a=Veykril Trying to figure out why we aren't getting backtraces for windows builds from CI, this let's one set the backtraces to `FULL` Might be cc https://github.com/rust-lang/rust/issues/87481 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
377476ac45
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ fn try_main() -> Result<()> {
|
|||
}
|
||||
|
||||
fn setup_logging(log_file: Option<&Path>) -> Result<()> {
|
||||
env::set_var("RUST_BACKTRACE", "short");
|
||||
if env::var("RUST_BACKTRACE").is_err() {
|
||||
env::set_var("RUST_BACKTRACE", "short");
|
||||
}
|
||||
|
||||
let log_file = match log_file {
|
||||
Some(path) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue