method
identity
rails latest stable - Class:
ActiveRecord::LogSubscriber
identity(event)public
No documentation available.
# File activerecord/lib/active_record/log_subscriber.rb, line 63
def identity(event)
return unless logger.debug?
name = color(event.payload[:name], odd? ? CYAN : MAGENTA, true)
line = odd? ? color(event.payload[:line], nil, true) : event.payload[:line]
debug " #{name} #{line}"
end