Skip to content

Commit

Permalink
Auto merge of #64329 - Mark-Simulacrum:rustdoc-log, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Switch rustdoc logging to RUSTDOC_LOG

This better aligns with Cargo (CARGO_LOG) and rustc (RUSTC_LOG).

Fixes #64309

r? @GuillaumeGomez
  • Loading branch information
bors committed Sep 10, 2019
2 parents 61dced1 + 007a58d commit 403c0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/lib.rs
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 403c0de

Please sign in to comment.