Use env_logger in ra_cli

This commit is contained in:
Alexander Ekdahl 2019-11-29 19:20:48 -05:00
parent 484acc8a61
commit 9c01c0dcb5
3 changed files with 28 additions and 4 deletions

View file

@ -7,7 +7,6 @@ mod progress_report;
use std::{error::Error, fmt::Write, io::Read};
use flexi_logger::Logger;
use pico_args::Arguments;
use ra_ide::{file_structure, Analysis};
use ra_prof::profile;
@ -32,7 +31,7 @@ impl Verbosity {
}
fn main() -> Result<()> {
Logger::with_env_or_str("error").start()?;
env_logger::try_init()?;
let subcommand = match std::env::args_os().nth(1) {
None => {