Skip to content

Commit 720832c

Browse files
committed
Update error index generator to tracing
1 parent 208f973 commit 720832c

File tree

1 file changed

+2
-2
lines changed
  • src/tools/error_index_generator

1 file changed

+2
-2
lines changed

src/tools/error_index_generator/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(rustc_private)]
22

3-
extern crate env_logger;
43
extern crate rustc_ast;
4+
extern crate rustc_driver;
55
extern crate rustc_span;
66

77
use std::cell::RefCell;
@@ -282,7 +282,7 @@ fn parse_args() -> (OutputFormat, PathBuf) {
282282
}
283283

284284
fn main() {
285-
env_logger::init();
285+
rustc_driver::init_env_logger("RUST_LOG");
286286
let (format, dst) = parse_args();
287287
let result = rustc_ast::with_default_session_globals(move || main_with_result(format, &dst));
288288
if let Err(e) = result {

0 commit comments

Comments
 (0)