avto-dev / roadrunner-laravel

[ABANDONED] Moved to https://github.com/spiral/roadrunner-laravel
MIT License
120 stars 15 forks source link

Using with Telescope #23

Closed Alexfilus closed 4 years ago

Alexfilus commented 5 years ago

When I use that package with Laravel Telescope, I get multiple requests in log from Telescope itself. http://joxi.ru/a2X0XWEUwnbBd2 I guess it's because of PHP working in CLI mode. Do you know simple way to fix this?

tarampampam commented 4 years ago

@Alexfilus Soon #26 will be published. After that can you try to reproduce your problem?

tarampampam commented 4 years ago

Please, update package up to v3.x. If any troubles will be happened again - I will open this issue back!

Alexfilus commented 4 years ago

Update package, and Laravel to lastest versions. Problem remains.

Alexfilus commented 4 years ago

I solved this by modify Telescope::filter callback in TelescopeServiceProvider

if ($entry->type === 'request') {
    if (isset($entry->content['uri'])) {
         if (substr($entry->content['uri'], 0, 10) === '/telescope') {
               return false;
          }
     }
}

just add this at the begining of callback