Re-enable verbosity toggle in MDOutputHandler
This commit is contained in:
parent
4c7f1e5e2b
commit
37b6c6f7ac
|
@ -136,7 +136,7 @@ class MDOutputHandler {
|
||||||
file_put_contents($this->_logfile, $message, FILE_APPEND);
|
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) {
|
if ($this->_counter % 250 === 0) {
|
||||||
echo '―――> ' . sprintf("%1$07d", $this->_counter) . " operations processed" . PHP_EOL;
|
echo '―――> ' . sprintf("%1$07d", $this->_counter) . " operations processed" . PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user