module ActiveRecord::QueryLogs

def query_source_location # :nodoc:

:nodoc:
def query_source_location # :nodoc:
  Thread.each_caller_location do |location|
    frame = LogSubscriber.backtrace_cleaner.clean_frame(location)
    return frame if frame
  end
  nil
end