A sentry capture
This commit is contained in:
parent
ee5a3438f5
commit
6776d3c5c2
|
|
@ -177,6 +177,11 @@ class Handler implements MessageComponentInterface
|
|||
'message' => $e->getMessage(),
|
||||
],
|
||||
]));
|
||||
|
||||
// if sentry is defined capture exception
|
||||
if (app()->bound('sentry')) {
|
||||
app('sentry')->captureException($e);
|
||||
}
|
||||
}
|
||||
|
||||
exit(0);
|
||||
|
|
@ -189,8 +194,12 @@ class Handler implements MessageComponentInterface
|
|||
'line' => $e->getLine(),
|
||||
'trace' => $e->getTraceAsString(),
|
||||
]);
|
||||
}
|
||||
|
||||
// if sentry is defined capture exception
|
||||
if (app()->bound('sentry')) {
|
||||
app('sentry')->captureException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue