Skip to content

Commit c7269ef

Browse files
committed
wip
1 parent 62e7f0f commit c7269ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/Exceptions/Handler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
99
use Illuminate\Session\TokenMismatchException;
1010
use Illuminate\Validation\ValidationException;
11+
use Sentry\Laravel\Integration;
1112
use Symfony\Component\HttpKernel\Exception\HttpException;
1213
use Throwable;
1314

@@ -44,9 +45,7 @@ class Handler extends ExceptionHandler
4445
public function register(): void
4546
{
4647
$this->reportable(function (Throwable $e) {
47-
if (app()->bound('sentry')) {
48-
app('sentry')->captureException($e);
49-
}
48+
Integration::captureUnhandledException($e);
5049
});
5150
}
5251
}

0 commit comments

Comments
 (0)