Commit 91572076 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-clean-query-recorder-backtrace' into 'master'

Clean QueryRecorder backtrace

See merge request gitlab-org/gitlab-ce!29724
parents 7f54f045 3a90ecd2
...@@ -11,7 +11,7 @@ module ActiveRecord ...@@ -11,7 +11,7 @@ module ActiveRecord
def show_backtrace(values) def show_backtrace(values)
Rails.logger.debug("QueryRecorder SQL: #{values[:sql]}") 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 end
def callback(name, start, finish, message_id, values) 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