diff options
Diffstat (limited to 'crates/server')
-rw-r--r-- | crates/server/src/main.rs | 3 | ||||
-rw-r--r-- | crates/server/src/main_loop/mod.rs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index baabde629..968b3b87a 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs | |||
@@ -11,7 +11,8 @@ use gen_lsp_server::{run_server, stdio_transport}; | |||
11 | use m::Result; | 11 | use m::Result; |
12 | 12 | ||
13 | fn main() -> Result<()> { | 13 | fn main() -> Result<()> { |
14 | Logger::with_env_or_str("m=error") | 14 | ::std::env::set_var("RUST_BACKTRACE", "short"); |
15 | Logger::with_env_or_str("error") | ||
15 | .duplicate_to_stderr(Duplicate::All) | 16 | .duplicate_to_stderr(Duplicate::All) |
16 | .log_to_file() | 17 | .log_to_file() |
17 | .directory("log") | 18 | .directory("log") |
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs index 52f2a8977..2ef1e2d17 100644 --- a/crates/server/src/main_loop/mod.rs +++ b/crates/server/src/main_loop/mod.rs | |||
@@ -38,7 +38,9 @@ pub fn main_loop( | |||
38 | msg_sender: &mut Sender<RawMessage>, | 38 | msg_sender: &mut Sender<RawMessage>, |
39 | ) -> Result<()> { | 39 | ) -> Result<()> { |
40 | let pool = rayon::ThreadPoolBuilder::new() | 40 | let pool = rayon::ThreadPoolBuilder::new() |
41 | .num_threads(4).build() | 41 | .num_threads(4) |
42 | .panic_handler(|_| error!("thread panicked :(")) | ||
43 | .build() | ||
42 | .unwrap(); | 44 | .unwrap(); |
43 | let (task_sender, task_receiver) = unbounded::<Task>(); | 45 | let (task_sender, task_receiver) = unbounded::<Task>(); |
44 | let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader(); | 46 | let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader(); |