instance method
log_exception
Ruby on Rails 8.1.2
Since v7.0.10 PrivateSignature
log_exception(name, e)
No documentation comment.
Parameters
-
namereq -
ereq
Source
# File activesupport/lib/active_support/log_subscriber.rb, line 180
def log_exception(name, e)
ActiveSupport.error_reporter.report(e, source: name)
if logger
logger.error "Could not log #{name.inspect} event. #{e.class}: #{e.message} #{e.backtrace}"
end
end
Defined in activesupport/lib/active_support/log_subscriber.rb line 180
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::LogSubscriber