mirror of
https://github.com/filp/whoops.git
synced 2026-09-14 11:46:19 +00:00
Merge pull request #16 from Anahkiasen/patch-1
Only register Whoops as Exception handler if debug
This commit is contained in:
@@ -32,8 +32,10 @@ class WhoopsServiceProvider extends ServiceProvider {
|
||||
return $run->pushHandler($app['whoops.handler']);
|
||||
});
|
||||
|
||||
$app->error(function($e) use ($app) {
|
||||
$app['whoops']->handleException($e);
|
||||
});
|
||||
if ($app['config']->get('app.debug')) {
|
||||
$app->error(function($e) use ($app) {
|
||||
$app['whoops']->handleException($e);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user