Added 'Build with debug' button for Admin on project page. Issue #22
This commit is contained in:
parent
96aa345dc0
commit
ebb08d868b
9 changed files with 29 additions and 8 deletions
|
|
@ -38,7 +38,7 @@ class BuildLogger implements LoggerAwareInterface
|
|||
public function __construct(LoggerInterface $logger, Build $build)
|
||||
{
|
||||
$this->logger = $logger;
|
||||
$this->build = $build;
|
||||
$this->build = $build;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -101,7 +101,10 @@ class BuildLogger implements LoggerAwareInterface
|
|||
*/
|
||||
public function logDebug($message)
|
||||
{
|
||||
if (defined('DEBUG_MODE') && DEBUG_MODE) {
|
||||
if (
|
||||
(defined('DEBUG_MODE') && DEBUG_MODE) ||
|
||||
((boolean)$this->build->getExtra('debug'))
|
||||
) {
|
||||
$this->log("\033[0;36m" . $message . "\033[0m");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue