Skip to content

Commit

Permalink
Fixing type in log file
Browse files Browse the repository at this point in the history
Fixing the null handler to stop log propagation
  • Loading branch information
silvamfilipe committed Oct 21, 2014
1 parent c78fad1 commit 5ad9d2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Slick/Log/Handler/NullHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class NullHandler extends BaseHandler
*/
public function __construct($level = Logger::DEBUG)
{
parent::__construct($level, true);
parent::__construct($level, false);
}
}
2 changes: 1 addition & 1 deletion src/Slick/Log/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getLogger($name = null)
$name = is_null($name) ? $this->defaultLogger : $name;
if (!isset(static::$_loggers[$name])) {
static::$_loggers[$name] = new Logger($name);
$this->_setDefaultHandlers(static::$_loggers);
$this->_setDefaultHandlers(static::$_loggers[$name]);
}
return static::$_loggers[$name];
}
Expand Down

0 comments on commit 5ad9d2a

Please sign in to comment.