From 37b6c6f7ac4f2772960d11f6a8dc662770f7d25b Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 9 Aug 2020 18:13:41 +0200 Subject: [PATCH] Re-enable verbosity toggle in MDOutputHandler --- src/MDOutputHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MDOutputHandler.php b/src/MDOutputHandler.php index 3929244..612a8b8 100644 --- a/src/MDOutputHandler.php +++ b/src/MDOutputHandler.php @@ -136,7 +136,7 @@ class MDOutputHandler { file_put_contents($this->_logfile, $message, FILE_APPEND); } - if (($this->_verbosity > 0 && $statusCode > 1) || $this->_verbosity === 2) echo $message; + if (($this->_verbosity > 0 && in_array($statusCode, [MDConsole::STATUS_UPDATE, MDConsole::STATUS_DELETION, MDConsole::STATUS_ERROR])) || $this->_verbosity === 2) echo $message; if ($this->_counter % 250 === 0) { echo '―――> ' . sprintf("%1$07d", $this->_counter) . " operations processed" . PHP_EOL;