Remove flexi_logger from ra_lsp_server

This commit is contained in:
Alexander Ekdahl 2019-11-29 19:35:03 -05:00
parent 9c01c0dcb5
commit eb4e70fc67
6 changed files with 5 additions and 73 deletions

View file

@ -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";

View file

@ -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 {