mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 12:40:18 +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::log(strip_tags($message));
|
||||||
|
|
||||||
self::$screenBuffer .= str_repeat("\t", $tabs)
|
if (!self::$verboseLogEnabled) {
|
||||||
. strip_tags($message)
|
self::$screenBuffer .= str_repeat("\t", $tabs)
|
||||||
. str_repeat(PHP_EOL, $newLine);
|
. strip_tags($message)
|
||||||
|
. str_repeat(PHP_EOL, $newLine);
|
||||||
|
|
||||||
$output = str_repeat("\t", $tabs)
|
$output = str_repeat("\t", $tabs)
|
||||||
. Colors::color($message, self::$config)
|
. Colors::color($message, self::$config)
|
||||||
. str_repeat(PHP_EOL, $newLine);
|
. str_repeat(PHP_EOL, $newLine);
|
||||||
|
|
||||||
echo $output;
|
echo $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user