mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-13 03:02:20 +02:00
Avoid duplicating output when verbose option is turned on
This commit is contained in:
parent
67e00bca59
commit
654753b70f
|
@ -181,15 +181,17 @@ class Console
|
|||
{
|
||||
self::log(strip_tags($message));
|
||||
|
||||
self::$screenBuffer .= str_repeat("\t", $tabs)
|
||||
. strip_tags($message)
|
||||
. str_repeat(PHP_EOL, $newLine);
|
||||
if (!self::$verboseLogEnabled) {
|
||||
self::$screenBuffer .= str_repeat("\t", $tabs)
|
||||
. strip_tags($message)
|
||||
. str_repeat(PHP_EOL, $newLine);
|
||||
|
||||
$output = str_repeat("\t", $tabs)
|
||||
. Colors::color($message, self::$config)
|
||||
. str_repeat(PHP_EOL, $newLine);
|
||||
$output = str_repeat("\t", $tabs)
|
||||
. Colors::color($message, self::$config)
|
||||
. str_repeat(PHP_EOL, $newLine);
|
||||
|
||||
echo $output;
|
||||
echo $output;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue