Skip to content

Commit d3cdca2

Browse files
afracabarryvdh
authored andcommitted
Fix no queries being collected anymore (#827)
Missing negation
1 parent 0858cd5 commit d3cdca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelDebugbar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ function ($level, $message = null, $context = null) use ($logger) {
319319
try {
320320
$db->listen(
321321
function ($query, $bindings = null, $time = null, $connectionName = null) use ($db, $queryCollector) {
322-
if ($this->shouldCollect('db', true)) {
322+
if (!$this->shouldCollect('db', true)) {
323323
return; // Issue 776 : We've turned off collecting after the listener was attached
324324
}
325325
// Laravel 5.2 changed the way some core events worked. We must account for

0 commit comments

Comments
 (0)