We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d598d0b commit 983e19cCopy full SHA for 983e19c
crates/rust-analyzer/src/bin/main.rs
@@ -92,7 +92,9 @@ fn try_main() -> Result<()> {
92
}
93
94
fn setup_logging(log_file: Option<&Path>) -> Result<()> {
95
- env::set_var("RUST_BACKTRACE", "short");
+ if env::var("RUST_BACKTRACE").is_err() {
96
+ env::set_var("RUST_BACKTRACE", "short");
97
+ }
98
99
let log_file = match log_file {
100
Some(path) => {
0 commit comments