Skip to content

Commit

Permalink
[FrameworkBundle] changed error_log() calls to logger calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 14, 2010
1 parent 0da7295 commit 917da00
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -70,9 +70,13 @@ public function handle(Event $event)
try {
$response = $event->getSubject()->handle($request, HttpKernelInterface::SUB_REQUEST, true);

error_log(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
if (null !== $this->logger) {
$this->logger->err(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
}
} catch (\Exception $e) {
error_log(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
if (null !== $this->logger) {
$this->logger->err(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
}

return false;
}
Expand Down

0 comments on commit 917da00

Please sign in to comment.