Laravel Telescope – Log only errors status in Requests panel

  laravel, laravel-telescope

In Laravel Telescope debug tool, in the "Requests" panel, is there a way to only log some requests, and not all requests ?

For instance, all requests except those with 200 or 302 status.

I tried to modify config/telescope.php file, especially that part

WatchersRequestWatcher::class => [
    'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
    'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),

But i didn’t find any options about page status.

And I also tried modifying the TelescopeServiceProvider.php file, the register() method but without success.

Thank you for your help

Source: Laravel

Leave a Reply