mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 04:45:05 +00:00
Merge #1405
1405: re-enable backtraces on panic r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
41c56c8a0d
1 changed files with 1 additions and 2 deletions
|
@ -6,8 +6,7 @@ use ra_lsp_server::{Result, InitializationOptions};
|
||||||
use ra_prof;
|
use ra_prof;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
// re-enable and verify on windows after #1400
|
std::env::set_var("RUST_BACKTRACE", "short");
|
||||||
// std::env::set_var("RUST_BACKTRACE", "short");
|
|
||||||
let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All);
|
let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All);
|
||||||
match std::env::var("RA_LOG_DIR") {
|
match std::env::var("RA_LOG_DIR") {
|
||||||
Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,
|
Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,
|
||||||
|
|
Loading…
Reference in a new issue