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.
12 lines
250 B
12 lines
250 B
7 years ago
|
# frozen_string_literal: true
|
||
|
|
||
|
class SidekiqErrorHandler
|
||
|
def call(*)
|
||
|
yield
|
||
|
rescue Mastodon::HostValidationError => e
|
||
|
Rails.logger.error "#{e.class}: #{e.message}"
|
||
|
Rails.logger.error e.backtrace.join("\n")
|
||
|
# Do not retry
|
||
|
end
|
||
|
end
|