log(sql, name) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 193
        def log(sql, name)
          name ||= "SQL"
          @instrumenter.instrument("sql.active_record",
            :sql => sql, :name => name, :connection_id => object_id) do
            yield
          end
        rescue Exception => e
          message = "#{e.class.name}: #{e.message}: #{sql}"
          @logger.debug message if @logger
          raise translate_exception(e, message)
        end
Register or log in to add new notes.