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