Skip to content
Snippets Groups Projects
Commit 3a90ecd2 authored by Stan Hu's avatar Stan Hu
Browse files

Clean QueryRecorder backtrace

This makes it much easier to debug N+1 queries via QueryRecorder by
eliminating unnecessary lines.
parent d7e3fcf1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,7 +11,7 @@ module ActiveRecord
 
def show_backtrace(values)
Rails.logger.debug("QueryRecorder SQL: #{values[:sql]}")
caller.each { |line| Rails.logger.debug(" --> #{line}") }
Gitlab::Profiler.clean_backtrace(caller).each { |line| Rails.logger.debug(" --> #{line}") }
end
 
def callback(name, start, finish, message_id, values)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment