Skip to content

Commit 403c0de

Browse files
committed
Auto merge of #64329 - Mark-Simulacrum:rustdoc-log, r=GuillaumeGomez
Switch rustdoc logging to RUSTDOC_LOG This better aligns with Cargo (CARGO_LOG) and rustc (RUSTC_LOG). Fixes #64309 r? @GuillaumeGomez
2 parents 61dced1 + 007a58d commit 403c0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn main() {
9090
32_000_000 // 32MB on other platforms
9191
};
9292
rustc_driver::set_sigpipe_handler();
93-
env_logger::init();
93+
env_logger::init_from_env("RUSTDOC_LOG");
9494
let res = std::thread::Builder::new().stack_size(thread_stack_size).spawn(move || {
9595
get_args().map(|args| main_args(&args)).unwrap_or(1)
9696
}).unwrap().join().unwrap_or(rustc_driver::EXIT_FAILURE);

0 commit comments

Comments
 (0)