mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove debug header, does not work.
This commit is contained in:
parent
27f740bf98
commit
60362cb60c
@ -53,17 +53,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
$headers['X-Trace-Id'] = $uuid;
|
||||
}
|
||||
|
||||
if (config('app.debug')) {
|
||||
try {
|
||||
/** @var QueryCollector $collector */
|
||||
$collector = Debugbar::getCollector('queries');
|
||||
$info = $collector->collect();
|
||||
$headers['X-Debug-QueryCount'] = $info['nb_statements'] ?? 0;
|
||||
} catch (DebugBarException $e) {
|
||||
// ignore error.
|
||||
}
|
||||
}
|
||||
|
||||
return response()
|
||||
->json($value)
|
||||
->withHeaders($headers)
|
||||
|
Loading…
Reference in New Issue
Block a user