chore(deps): update sentry version, sentry handler
This commit is contained in:
parent
498534e9c0
commit
2cfdabeb62
@ -22,6 +22,7 @@
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Sentry\Laravel\Integration;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
@ -45,21 +46,11 @@ class Handler extends ExceptionHandler
|
||||
'password_confirmation',
|
||||
];
|
||||
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
* @param \Throwable $exception
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function report(Throwable $exception)
|
||||
public function register(): void
|
||||
{
|
||||
if (app()->bound('sentry') && $this->shouldReport($exception)) {
|
||||
app('sentry')->captureException($exception);
|
||||
}
|
||||
|
||||
parent::report($exception);
|
||||
$this->reportable(function (Throwable $e) {
|
||||
Integration::captureUnhandledException($e);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@
|
||||
"mpociot/teamwork": "^8.0",
|
||||
"opcodesio/log-viewer": "^1.2",
|
||||
"pragmarx/google2fa-laravel": "^1.3",
|
||||
"sentry/sentry-laravel": "3.2.*",
|
||||
"sentry/sentry-laravel": "3.6.*",
|
||||
"socialiteproviders/discord": "^4.1",
|
||||
"spatie/laravel-permission": "^5.5",
|
||||
"ultrono/markdown": "*"
|
||||
|
23
composer.lock
generated
23
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "b69f99d4cab0bf1ae806c2c8e9fd8205",
|
||||
"content-hash": "366b9feca7fa3c75b96dd22ce137d9f4",
|
||||
"packages": [
|
||||
{
|
||||
"name": "almasaeed2010/adminlte",
|
||||
@ -5592,29 +5592,26 @@
|
||||
},
|
||||
{
|
||||
"name": "sentry/sentry-laravel",
|
||||
"version": "3.2.0",
|
||||
"version": "3.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/getsentry/sentry-laravel.git",
|
||||
"reference": "55ad9bd47766cec2d8978b8487c40e81a5a87d76"
|
||||
"reference": "6aacef4d12c22046f68ab617ee1496b9655b8eb9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/55ad9bd47766cec2d8978b8487c40e81a5a87d76",
|
||||
"reference": "55ad9bd47766cec2d8978b8487c40e81a5a87d76",
|
||||
"url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/6aacef4d12c22046f68ab617ee1496b9655b8eb9",
|
||||
"reference": "6aacef4d12c22046f68ab617ee1496b9655b8eb9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
|
||||
"nyholm/psr7": "^1.0",
|
||||
"php": "^7.2 | ^8.0",
|
||||
"sentry/sdk": "^3.3",
|
||||
"sentry/sentry": "^3.12",
|
||||
"sentry/sdk": "^3.4",
|
||||
"sentry/sentry": "^3.20",
|
||||
"symfony/psr-http-message-bridge": "^1.0 | ^2.0"
|
||||
},
|
||||
"conflict": {
|
||||
"laravel/lumen-framework": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.11",
|
||||
"laravel/framework": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
|
||||
@ -5647,7 +5644,7 @@
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
@ -5669,7 +5666,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/getsentry/sentry-laravel/issues",
|
||||
"source": "https://github.com/getsentry/sentry-laravel/tree/3.2.0"
|
||||
"source": "https://github.com/getsentry/sentry-laravel/tree/3.6.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -5681,7 +5678,7 @@
|
||||
"type": "custom"
|
||||
}
|
||||
],
|
||||
"time": "2023-02-01T10:56:52+00:00"
|
||||
"time": "2023-06-29T10:31:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "socialiteproviders/discord",
|
||||
|
Loading…
x
Reference in New Issue
Block a user