beyondcode/laravel-query-detector

Requests from api - 'N+1 Queries' is already a registered collector

ClaudioVarandas opened this issue · 2 comments

Hi,

In this config :

'output' => [
        \BeyondCode\QueryDetector\Outputs\Debugbar::class
    ]

i got the following exception just when the request cames from the api :

[2018-08-13 15:05:45] local.ERROR: 'N+1 Queries' is already a registered collector {"exception":"[object] (DebugBar\\DebugBarException(code: 0): 'N+1 Queries' is already a registered collector at /var/www/bold/sympl.app2/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:65)
[stacktrace]

Any ideas ?
CV

I'm running into this in test cases with multiple api calls