mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
WIP: working on better Rollbar filtering in prod
This commit is contained in:
parent
2997de2a66
commit
039d159cbd
|
@ -113,6 +113,13 @@ $config = [
|
||||||
'handler' => \Rollbar\Laravel\MonologHandler::class,
|
'handler' => \Rollbar\Laravel\MonologHandler::class,
|
||||||
'access_token' => env('ROLLBAR_TOKEN'),
|
'access_token' => env('ROLLBAR_TOKEN'),
|
||||||
'level' => env('ROLLBAR_LEVEL', 'error'),
|
'level' => env('ROLLBAR_LEVEL', 'error'),
|
||||||
|
'check_ignore' => function($isUncaught, $args, $payload) {
|
||||||
|
if (method_exists($args, 'getMessage') && strstr($args->getMessage(), 'Declaration of')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue