Commit 5c5dae19 authored by Dave Marshall's avatar Dave Marshall

Flipped condition

parent 9f4a122f
...@@ -77,10 +77,10 @@ class MonologServiceProvider implements ServiceProviderInterface ...@@ -77,10 +77,10 @@ class MonologServiceProvider implements ServiceProviderInterface
$app->error(function (\Exception $e) use ($app) { $app->error(function (\Exception $e) use ($app) {
$message = sprintf('%s: %s (uncaught exception) at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()); $message = sprintf('%s: %s (uncaught exception) at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine());
if (!$e instanceof HttpExceptionInterface || $e->getStatusCode() >= 500) { if ($e instanceof HttpExceptionInterface && $e->getStatusCode() < 500) {
$app['monolog']->addCritical($message);
} else {
$app['monolog']->addError($message); $app['monolog']->addError($message);
} else {
$app['monolog']->addCritical($message);
} }
}, 255); }, 255);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment