Skip to content

Commit

Permalink
Merge pull request barryvdh#354 from barryvdh/revert-350-fix_query_lo…
Browse files Browse the repository at this point in the history
…gging_is_off

Revert "[L5] Fix for addon crash when DB::disableQueryLog() was calle…
  • Loading branch information
barryvdh committed May 26, 2015
2 parents d9abfd1 + 8d313ba commit c011436
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 @@ -251,7 +251,7 @@ function ($level, $message, $context) use ($logger) {
}
}

if ($this->shouldCollect('db', true) && isset($this->app['db']) && $this->app['db']->logging()) {
if ($this->shouldCollect('db', true) && isset($this->app['db'])) {
$db = $this->app['db'];
if ($debugbar->hasCollector('time') && $this->app['config']->get(
'debugbar.options.db.timeline',
Expand Down

0 comments on commit c011436

Please sign in to comment.