Browse Source

Avoid duplicating output when verbose option is turned on

1.0
Kuba Turek 10 years ago
parent
commit
654753b70f
  1. 16
      Mage/Console.php

16
Mage/Console.php

@ -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…
Cancel
Save