闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
250 B

  1. # frozen_string_literal: true
  2. class SidekiqErrorHandler
  3. def call(*)
  4. yield
  5. rescue Mastodon::HostValidationError => e
  6. Rails.logger.error "#{e.class}: #{e.message}"
  7. Rails.logger.error e.backtrace.join("\n")
  8. # Do not retry
  9. end
  10. end