Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
],
'hints' => false, // Show hints for common mistakes
'show_copy' => false, // Show copy button next to the query
'traces_count' => 5, // How many relevant traces to load
],
'mail' => [
'full_log' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/DataCollector/QueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function addQuery($query, $bindings, $time, $connection)

if ($this->findSource) {
try {
$source = array_slice($this->findSource(), 0, 5);
$source = array_slice($this->findSource(), 0, config('debugbar.options.db.traces_count'));
} catch (\Exception $e) {
}
}
Expand Down