diff --git a/stubs/TelescopeServiceProvider.stub b/stubs/TelescopeServiceProvider.stub index d13b00143..470ef171a 100644 --- a/stubs/TelescopeServiceProvider.stub +++ b/stubs/TelescopeServiceProvider.stub @@ -18,12 +18,11 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider $this->hideSensitiveRequestDetails(); - Telescope::filter(function (IncomingEntry $entry) { - if ($this->app->environment('local')) { - return true; - } + $isLocal = $this->app->environment('local'); - return $entry->isReportableException() || + Telescope::filter(function (IncomingEntry $entry) use ($isLocal) { + return $isLocal || + $entry->isReportableException() || $entry->isFailedRequest() || $entry->isFailedJob() || $entry->isScheduledTask() ||