ErrorController: Log the full stacktrace in case of unhandled exceptions

This commit is contained in:
Johannes Meyer 2016-10-13 12:06:23 +02:00
parent c5c10adf75
commit 0fd5e8e4e8
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class ErrorController extends ActionController
break;
default:
$this->getResponse()->setHttpResponseCode(500);
Logger::error($exception);
Logger::error("%s\n%s", $exception, $exception->getTraceAsString());
break;
}
$this->view->message = $exception->getMessage();