Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
Sentry and Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromesigg committed Jun 30, 2021
1 parent 16a5a63 commit c48e455
Show file tree
Hide file tree
Showing 5 changed files with 6,249 additions and 13,373 deletions.
8 changes: 5 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ class Handler extends ExceptionHandler
*/
public function report(Throwable $exception)
{
// if (app()->bound('sentry') && $this->shouldReport($exception)) {
// app('sentry')->captureException($exception);
// }
if ($this->shouldReport($exception) && app()->bound('sentry')) {
app('sentry')->captureException($exception);
}

parent::report($exception);

}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"laravel/ui": "^3.0",
"laravelcollective/html": "^6.1",
"maatwebsite/excel": "^3.1",
"sentry/sentry-laravel": "^2.4",
"sentry/sentry-laravel": "^2.7",
"socialiteproviders/zoho": "^4.1",
"yajra/laravel-datatables-oracle": "~9.0"
},
Expand Down
Loading

0 comments on commit c48e455

Please sign in to comment.