method
log
log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil, async: false, &block)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 1142 def log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil, async: false, &block) # :doc: @instrumenter.instrument( "sql.active_record", sql: sql, name: name, binds: binds, type_casted_binds: type_casted_binds, statement_name: statement_name, async: async, connection: self, &block ) rescue ActiveRecord::StatementInvalid => ex raise ex.set_query(sql, binds) end