Re-enable verbosity toggle in MDOutputHandler

This commit is contained in:
Joshua Ramon Enslin 2020-08-09 18:13:41 +02:00 committed by Stefan Rohde-Enslin
parent 4c7f1e5e2b
commit 37b6c6f7ac

View File

@ -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;