about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-07-25 17:19:17 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-07-31 22:38:27 +0200
commit720832c644d4dfe14ec43ae9ef4d74b647ccd77d (patch)
tree6764a0330406663f84096ed9ae09ef48c3fe1093
parent208f973d1f8ed7442a64c7784e1b4f5910722eb5 (diff)
downloadrust-720832c644d4dfe14ec43ae9ef4d74b647ccd77d.tar.gz
rust-720832c644d4dfe14ec43ae9ef4d74b647ccd77d.zip
Update error index generator to tracing
-rw-r--r--src/tools/error_index_generator/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/error_index_generator/main.rs b/src/tools/error_index_generator/main.rs
index c4292d041d0..bd9f8fb0450 100644
--- a/src/tools/error_index_generator/main.rs
+++ b/src/tools/error_index_generator/main.rs
@@ -1,7 +1,7 @@
 #![feature(rustc_private)]
 
-extern crate env_logger;
 extern crate rustc_ast;
+extern crate rustc_driver;
 extern crate rustc_span;
 
 use std::cell::RefCell;
@@ -282,7 +282,7 @@ fn parse_args() -> (OutputFormat, PathBuf) {
 }
 
 fn main() {
-    env_logger::init();
+    rustc_driver::init_env_logger("RUST_LOG");
     let (format, dst) = parse_args();
     let result = rustc_ast::with_default_session_globals(move || main_with_result(format, &dst));
     if let Err(e) = result {