aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-06-15 10:58:43 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-06-15 10:58:43 +0100
commit41c56c8a0d01d395e49cd199e6050b02a91cff1d (patch)
tree0ca95c16c2ecc22bff23fe422526971c57c75620 /crates/ra_lsp_server
parent257a15b93942a1e38e561576af471a6a1e63bcff (diff)
parent24703acf269c367fa05b0e4863090cbcfde39dc6 (diff)
Merge #1405
1405: re-enable backtraces on panic r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs
index 7749d97d6..7ed35c24a 100644
--- a/crates/ra_lsp_server/src/main.rs
+++ b/crates/ra_lsp_server/src/main.rs
@@ -6,8 +6,7 @@ use ra_lsp_server::{Result, InitializationOptions};
6use ra_prof; 6use ra_prof;
7 7
8fn main() -> Result<()> { 8fn main() -> Result<()> {
9 // re-enable and verify on windows after #1400 9 std::env::set_var("RUST_BACKTRACE", "short");
10 // std::env::set_var("RUST_BACKTRACE", "short");
11 let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All); 10 let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All);
12 match std::env::var("RA_LOG_DIR") { 11 match std::env::var("RA_LOG_DIR") {
13 Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?, 12 Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,