Made the Event logger a little less cluttered

This commit is contained in:
Abel Hoogeveen 2015-02-11 15:03:20 +01:00
parent 4d8b8d5233
commit 3ab8692a5e
1 changed files with 2 additions and 3 deletions

View File

@ -123,9 +123,9 @@ class Events extends Bus{
//Fire the event to each listener
foreach ($listeners as $callback) {
if(!is_string($callback[0]))
$this->logger->newLevel('Firing ' . get_class($callback[0]) . '->' . $callback[1]);
$this->logger->log('Firing ' . get_class($callback[0]) . '->' . $callback[1]);
else
$this->logger->newLevel('Firing ' . join('->', $callback));
$this->logger->log('Firing ' . join('->', $callback));
$this->logger->newLevel('');
try {
call_user_func($callback, $event);
@ -133,7 +133,6 @@ class Events extends Bus{
$this->error->exceptionHandler($e);
}
$this->logger->stopLevel();
$this->logger->stopLevel();
}
$this->logger->stopLevel();