Skip to content

Commit

Permalink
Also adjust logging similar to BaseErrorHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 7, 2017
1 parent 8c77da7 commit 4951149
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Error/Middleware/ErrorHandlerMiddleware.php
Expand Up @@ -191,10 +191,13 @@ protected function logException($request, $exception)
return;
}

$skipLog = $this->getConfig('skipLog');
if ($skipLog) {
foreach ((array)$skipLog as $class) {
if ($exception instanceof $class) {
$unwrapped = $exception instanceof PHP7ErrorException ?
$exception->getError() :
$exception;

if ($this->getConfig('skipLog')) {
foreach ((array)$this->getConfig('skipLog') as $class) {
if ($unwrapped instanceof $class) {
return;
}
}
Expand Down

0 comments on commit 4951149

Please sign in to comment.