Skip to content

Commit

Permalink
Replace laravel-stackdriver package (#731)
Browse files Browse the repository at this point in the history
replaced by `absszero/laravel-stackdriver-error-reporting` because of GlueDev/laravel-stackdriver#32
  • Loading branch information
deer-wmde authored Feb 8, 2024
1 parent 7b018c6 commit 873fd21
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 673 deletions.
13 changes: 5 additions & 8 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Exceptions;

use GlueDev\Laravel\Stackdriver\StackdriverExceptionHandler;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;

Expand Down Expand Up @@ -36,14 +35,12 @@ class Handler extends ExceptionHandler
];

/**
* Report or log an exception.
*
* @param \Throwable $e
* @return void
* Register the exception handling callbacks for the application.
*/
public function report(Throwable $e)
public function register()
{
StackdriverExceptionHandler::report($e);
parent::report($e);
$this->reportable(function (Throwable $e) {
(new \Absszero\ErrorReporting)->report($e);
});
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"license": "MIT",
"type": "project",
"require": {
"absszero/laravel-stackdriver-error-reporting": "^1.7",
"cviebrock/eloquent-sluggable": "^9.0",
"doctrine/dbal": "^3.1",
"firebase/php-jwt": "^5.4",
"fruitcake/laravel-cors": "^2.0",
"gluedev/laravel-stackdriver": "dev-develop#7fb3e78ce949dd341b5418f876c3ff74d8c1ff92",
"google/recaptcha": "^1.2",
"guzzlehttp/guzzle": "^7.8",
"guzzlehttp/psr7": "^1.9",
Expand Down
Loading

0 comments on commit 873fd21

Please sign in to comment.