aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAlexander Ekdahl <[email protected]>2019-11-30 00:20:48 +0000
committerAlexander Ekdahl <[email protected]>2019-11-30 00:20:48 +0000
commit9c01c0dcb5308d8d50ddf2d3fad6599fbff7d3dd (patch)
treea10e9604dc02aa2f10a99ca44f3452c89a91475b /crates
parent484acc8a61d599662ed63a4cbda091d38a982551 (diff)
Use env_logger in ra_cli
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_cli/Cargo.toml7
-rw-r--r--crates/ra_cli/src/main.rs3
2 files changed, 7 insertions, 3 deletions
diff --git a/crates/ra_cli/Cargo.toml b/crates/ra_cli/Cargo.toml
index c7e0d0f0f..9718b4b54 100644
--- a/crates/ra_cli/Cargo.toml
+++ b/crates/ra_cli/Cargo.toml
@@ -7,7 +7,7 @@ publish = false
7 7
8[dependencies] 8[dependencies]
9pico-args = "0.3.0" 9pico-args = "0.3.0"
10flexi_logger = "0.14.0" 10log = "0.4"
11 11
12ra_syntax = { path = "../ra_syntax" } 12ra_syntax = { path = "../ra_syntax" }
13ra_ide = { path = "../ra_ide" } 13ra_ide = { path = "../ra_ide" }
@@ -19,3 +19,8 @@ ra_db = { path = "../ra_db" }
19path = "../ra_prof" 19path = "../ra_prof"
20# features = [ "cpu_profiler" ] 20# features = [ "cpu_profiler" ]
21# features = [ "jemalloc" ] 21# features = [ "jemalloc" ]
22
23[dependencies.env_logger]
24version = "0.7.1"
25default-features = false
26features = ["humantime"]
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index fe847e611..3808590ab 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -7,7 +7,6 @@ mod progress_report;
7 7
8use std::{error::Error, fmt::Write, io::Read}; 8use std::{error::Error, fmt::Write, io::Read};
9 9
10use flexi_logger::Logger;
11use pico_args::Arguments; 10use pico_args::Arguments;
12use ra_ide::{file_structure, Analysis}; 11use ra_ide::{file_structure, Analysis};
13use ra_prof::profile; 12use ra_prof::profile;
@@ -32,7 +31,7 @@ impl Verbosity {
32} 31}
33 32
34fn main() -> Result<()> { 33fn main() -> Result<()> {
35 Logger::with_env_or_str("error").start()?; 34 env_logger::try_init()?;
36 35
37 let subcommand = match std::env::args_os().nth(1) { 36 let subcommand = match std::env::args_os().nth(1) {
38 None => { 37 None => {