diff options
author | Alexander Ekdahl <[email protected]> | 2019-11-30 00:20:48 +0000 |
---|---|---|
committer | Alexander Ekdahl <[email protected]> | 2019-11-30 00:20:48 +0000 |
commit | 9c01c0dcb5308d8d50ddf2d3fad6599fbff7d3dd (patch) | |
tree | a10e9604dc02aa2f10a99ca44f3452c89a91475b /crates | |
parent | 484acc8a61d599662ed63a4cbda091d38a982551 (diff) |
Use env_logger in ra_cli
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cli/Cargo.toml | 7 | ||||
-rw-r--r-- | crates/ra_cli/src/main.rs | 3 |
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] |
9 | pico-args = "0.3.0" | 9 | pico-args = "0.3.0" |
10 | flexi_logger = "0.14.0" | 10 | log = "0.4" |
11 | 11 | ||
12 | ra_syntax = { path = "../ra_syntax" } | 12 | ra_syntax = { path = "../ra_syntax" } |
13 | ra_ide = { path = "../ra_ide" } | 13 | ra_ide = { path = "../ra_ide" } |
@@ -19,3 +19,8 @@ ra_db = { path = "../ra_db" } | |||
19 | path = "../ra_prof" | 19 | path = "../ra_prof" |
20 | # features = [ "cpu_profiler" ] | 20 | # features = [ "cpu_profiler" ] |
21 | # features = [ "jemalloc" ] | 21 | # features = [ "jemalloc" ] |
22 | |||
23 | [dependencies.env_logger] | ||
24 | version = "0.7.1" | ||
25 | default-features = false | ||
26 | features = ["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 | ||
8 | use std::{error::Error, fmt::Write, io::Read}; | 8 | use std::{error::Error, fmt::Write, io::Read}; |
9 | 9 | ||
10 | use flexi_logger::Logger; | ||
11 | use pico_args::Arguments; | 10 | use pico_args::Arguments; |
12 | use ra_ide::{file_structure, Analysis}; | 11 | use ra_ide::{file_structure, Analysis}; |
13 | use ra_prof::profile; | 12 | use ra_prof::profile; |
@@ -32,7 +31,7 @@ impl Verbosity { | |||
32 | } | 31 | } |
33 | 32 | ||
34 | fn main() -> Result<()> { | 33 | fn 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 => { |