Add Sentry integration

This commit is contained in:
shibafu committed 2020-07-16 22:11:42 +09:00
1 parent 6c3bcd57c5
commit 19d4ba5e40
5 files changed
+1211 -265

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ class Handler extends ExceptionHandler
*/
public function report(Exception $exception)
{
if (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->captureException($exception);
}
parent::report($exception);
}