Fix Laravel Sentry integration
This commit is contained in:
parent
6e13e6de70
commit
5aca8b9947
|
@ -17,14 +17,14 @@ class Kernel extends ConsoleKernel
|
||||||
protected function schedule(Schedule $schedule): void
|
protected function schedule(Schedule $schedule): void
|
||||||
{
|
{
|
||||||
$schedule->job(new UpdateAvailabilityWithSchedulesJob)
|
$schedule->job(new UpdateAvailabilityWithSchedulesJob)
|
||||||
->everyThirtyMinutes()
|
->everyThirtyMinutes();
|
||||||
->sentryMonitor();
|
//->sentryMonitor();
|
||||||
$schedule->job(new NotifyUsersManualModeOn)
|
$schedule->job(new NotifyUsersManualModeOn)
|
||||||
->dailyAt('7:00')
|
->dailyAt('7:00');
|
||||||
->sentryMonitor();
|
//->sentryMonitor();
|
||||||
$schedule->job(new ResetAvailabilityMinutes)
|
$schedule->job(new ResetAvailabilityMinutes)
|
||||||
->monthlyOn(1, '0:00')
|
->monthlyOn(1, '0:00');
|
||||||
->sentryMonitor();
|
//->sentryMonitor();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,6 +5,8 @@ namespace App\Exceptions;
|
||||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
|
use Sentry\Laravel\Integration;
|
||||||
|
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -42,7 +44,7 @@ class Handler extends ExceptionHandler
|
||||||
public function register(): void
|
public function register(): void
|
||||||
{
|
{
|
||||||
$this->reportable(function (Throwable $e) {
|
$this->reportable(function (Throwable $e) {
|
||||||
//
|
Integration::captureUnhandledException($e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue