From 9b31c7ef10bbbab83b7fee2f779704b553cbc710 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Mon, 2 Sep 2024 13:59:45 -0400 Subject: [PATCH] Properly silence cargo output unless `--verbose`. (#903) Before this, output was always silenced since the check was inverted. It would only be unsilenced if the log level was less verbose than INFO, which is the opposite of what we want. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cfe5aadd..9a95702f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -378,7 +378,9 @@ impl Check { } pub fn check_release(&self, config: &mut GlobalConfig) -> anyhow::Result { - let rustdoc_cmd = RustdocCommand::new().deps(false).silence(config.is_info()); + let rustdoc_cmd = RustdocCommand::new() + .deps(false) + .silence(!config.is_verbose()); // If both the current and baseline rustdoc are given explicitly as a file path, // we don't need to use the installed rustc, and this check can be skipped.