Skip to content

Commit

Permalink
Switch rustdoc logging to RUSTDOC_LOG
Browse files Browse the repository at this point in the history
This better aligns with Cargo (CARGO_LOG) and rustc (RUSTC_LOG).
  • Loading branch information
Mark-Simulacrum committed Sep 10, 2019
1 parent 0b36e9d commit 007a58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn main() {
32_000_000 // 32MB on other platforms
};
rustc_driver::set_sigpipe_handler();
env_logger::init();
env_logger::init_from_env("RUSTDOC_LOG");
let res = std::thread::Builder::new().stack_size(thread_stack_size).spawn(move || {
get_args().map(|args| main_args(&args)).unwrap_or(1)
}).unwrap().join().unwrap_or(rustc_driver::EXIT_FAILURE);
Expand Down

0 comments on commit 007a58d

Please sign in to comment.