Class: ExceptionHunter::AsyncLoggingJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- ExceptionHunter::AsyncLoggingJob
- Defined in:
- app/jobs/exception_hunter/async_logging_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(tag, error_attrs) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/jobs/exception_hunter/async_logging_job.rb', line 5 def perform(tag, error_attrs) error_attrs = error_attrs.merge(occurred_at: Time.at(error_attrs[:occurred_at])) if error_attrs[:occurred_at] ErrorCreator.call(async_logging: false, tag: tag, **error_attrs) rescue Exception # Suppress all exceptions to avoid loop as this would create a new error in EH. false end |