Added exception context for errror/exception handler logging

This commit is contained in:
Corpsee 2014-03-24 23:43:20 +07:00
commit 08a15d8724

View file

@ -103,7 +103,7 @@ class Handler
$message = sprintf(
'%s: %s (uncaught exception) at %s line %s', get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine()
);
$this->logger->error($message);
$this->logger->error($message, array('exception' => $exception));
}
}
}