mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove flexi_logger from ra_lsp_server
This commit is contained in:
parent
9c01c0dcb5
commit
eb4e70fc67
6 changed files with 5 additions and 73 deletions
|
@ -15,7 +15,6 @@ use tempfile::TempDir;
|
|||
|
||||
use crate::support::{project, Project};
|
||||
|
||||
const LOG: &'static str = "";
|
||||
const PROFILE: &'static str = "";
|
||||
// const PROFILE: &'static str = "*@3>100";
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ use std::{
|
|||
};
|
||||
|
||||
use crossbeam_channel::{after, select, Receiver};
|
||||
use flexi_logger::Logger;
|
||||
use lsp_server::{Connection, Message, Notification, Request};
|
||||
use lsp_types::{
|
||||
notification::{DidOpenTextDocument, Exit},
|
||||
|
@ -53,7 +52,7 @@ impl<'a> Project<'a> {
|
|||
let tmp_dir = self.tmp_dir.unwrap_or_else(|| TempDir::new().unwrap());
|
||||
static INIT: Once = Once::new();
|
||||
INIT.call_once(|| {
|
||||
let _ = Logger::with_env_or_str(crate::LOG).start().unwrap();
|
||||
let _ = env_logger::builder().is_test(true).try_init().unwrap();
|
||||
ra_prof::set_filter(if crate::PROFILE.is_empty() {
|
||||
ra_prof::Filter::disabled()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue