This commit is contained in:
Andras Bacsai
2023-06-12 20:54:29 +02:00
parent 0496a32e1d
commit 169dc3c2d1
6 changed files with 18 additions and 29 deletions

View File

@@ -47,7 +47,7 @@ class Handler extends ExceptionHandler
{
$this->reportable(function (Throwable $e) {
$this->settings = InstanceSettings::get();
if ($this->settings->do_not_track) {
if ($this->settings->do_not_track || config('app.env') === 'local') {
return;
}
Integration::captureUnhandledException($e);