Fix CLI complaining without log config

This commit is contained in:
Thomas Gelf 2014-03-11 20:45:01 +01:00
parent 5c0441bc06
commit c76729a821
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ class Cli extends ApplicationBootstrap
protected function fixLoggingConfig()
{
$conf = & $this->getConfig()->logging;
if ($conf->type === 'stream') {
$conf = $this->config->logging;
if (! isset($conf->type) || $conf->type === 'stream') {
$conf->level = $this->verbose;
$conf->target = 'php://stderr';
}