method
log
log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 570 def log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil) # :doc: @instrumenter.instrument( "sql.active_record", sql: sql, name: name, binds: binds, type_casted_binds: type_casted_binds, statement_name: statement_name, connection_id: object_id) do begin @lock.synchronize do yield end rescue => e raise translate_exception_class(e, sql) end end end