Commit 3a90ecd2 authored by Stan Hu's avatar Stan Hu

Clean QueryRecorder backtrace

This makes it much easier to debug N+1 queries via QueryRecorder by
eliminating unnecessary lines.
parent d7e3fcf1
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment