instance method
call
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
call(message, *args)
No documentation comment.
Parameters
-
messagereq -
argsrest
Source
# File activesupport/lib/active_support/log_subscriber.rb, line 88
def call(message, *args)
return unless logger
method = message.split('.').first
begin
send(method, ActiveSupport::Notifications::Event.new(message, *args))
rescue Exception => e
logger.error "Could not log #{message.inspect} event. #{e.class}: #{e.message}"
end
end
Defined in activesupport/lib/active_support/log_subscriber.rb line 88
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::LogSubscriber