Method: Sequel::CallerLogging#log_connection_yield

Defined in:
lib/sequel/extensions/caller_logging.rb

#log_connection_yield(sql, conn, args = nil) ⇒ Object

Include caller information when logging query.



49
50
51
52
53
54
# File 'lib/sequel/extensions/caller_logging.rb', line 49

def log_connection_yield(sql, conn, args=nil)
  if !@loggers.empty? && (external_caller = external_caller_for_log)
    sql = "#{external_caller} #{sql}"
  end
  super
end