Skip to content

Commit 9c01c0d

Browse files
Use env_logger in ra_cli
1 parent 484acc8 commit 9c01c0d

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

Cargo.lock

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_cli/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish = false
77

88
[dependencies]
99
pico-args = "0.3.0"
10-
flexi_logger = "0.14.0"
10+
log = "0.4"
1111

1212
ra_syntax = { path = "../ra_syntax" }
1313
ra_ide = { path = "../ra_ide" }
@@ -19,3 +19,8 @@ ra_db = { path = "../ra_db" }
1919
path = "../ra_prof"
2020
# features = [ "cpu_profiler" ]
2121
# features = [ "jemalloc" ]
22+
23+
[dependencies.env_logger]
24+
version = "0.7.1"
25+
default-features = false
26+
features = ["humantime"]

crates/ra_cli/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ mod progress_report;
77

88
use std::{error::Error, fmt::Write, io::Read};
99

10-
use flexi_logger::Logger;
1110
use pico_args::Arguments;
1211
use ra_ide::{file_structure, Analysis};
1312
use ra_prof::profile;
@@ -32,7 +31,7 @@ impl Verbosity {
3231
}
3332

3433
fn main() -> Result<()> {
35-
Logger::with_env_or_str("error").start()?;
34+
env_logger::try_init()?;
3635

3736
let subcommand = match std::env::args_os().nth(1) {
3837
None => {

0 commit comments

Comments
 (0)