Skip to content

Commit

Permalink
Fix no queries being collected anymore (#827)
Browse files Browse the repository at this point in the history
Missing negation
  • Loading branch information
afraca authored and barryvdh committed May 3, 2018
1 parent 0858cd5 commit d3cdca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function ($level, $message = null, $context = null) use ($logger) {
try {
$db->listen(
function ($query, $bindings = null, $time = null, $connectionName = null) use ($db, $queryCollector) {
if ($this->shouldCollect('db', true)) {
if (!$this->shouldCollect('db', true)) {
return; // Issue 776 : We've turned off collecting after the listener was attached
}
// Laravel 5.2 changed the way some core events worked. We must account for
Expand Down

0 comments on commit d3cdca2

Please sign in to comment.