Skip to content

Commit 377476a

Browse files
bors[bot]Veykril
andauthored
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 rust-lang/rust#87481 bors r+ Co-authored-by: Lukas Wirth <[email protected]>
2 parents 2117ba0 + 983e19c commit 377476a

File tree

1 file changed

+3
-1
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+3
-1
lines changed

crates/rust-analyzer/src/bin/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ fn try_main() -> Result<()> {
9292
}
9393

9494
fn setup_logging(log_file: Option<&Path>) -> Result<()> {
95-
env::set_var("RUST_BACKTRACE", "short");
95+
if env::var("RUST_BACKTRACE").is_err() {
96+
env::set_var("RUST_BACKTRACE", "short");
97+
}
9698

9799
let log_file = match log_file {
98100
Some(path) => {

0 commit comments

Comments
 (0)