From 80012be4b8b38ef02d05ff26135366f4b863822f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Sun, 10 Jul 2022 16:10:54 +0200 Subject: [PATCH] fix verbosity not working on silence_stdout --- CHANGELOG.md | 1 + src/extensions.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f08a4118c..150d52760 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Fixed - #930 - fix any parsing of 1-character subcommands +- #929 - Fixed issue where `--verbose` would not output data when it should ## [v0.2.3] - 2022-07-09 diff --git a/src/extensions.rs b/src/extensions.rs index 1afa5b497..a9c2e8c22 100644 --- a/src/extensions.rs +++ b/src/extensions.rs @@ -133,7 +133,7 @@ impl CommandExt for Command { silence_stdout: bool, ) -> Result { self.debug(msg_info)?; - if silence_stdout && msg_info.is_verbose() { + if silence_stdout && !msg_info.is_verbose() { self.stdout(std::process::Stdio::null()); } self.status()