Catching more exceptions that slipped through, removing AR logging from
production as it's very verbose and not very useful
This commit is contained in:
@ -12,6 +12,9 @@ class FetchAtomService < BaseService
|
||||
else
|
||||
return process_html(fetch(url))
|
||||
end
|
||||
|
||||
rescue OpenSSL::SSL::SSLError => e
|
||||
Rails.logger.debug "SSL error: #{e}"
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -19,5 +19,7 @@ class FetchRemoteAccountService < BaseService
|
||||
Rails.logger.debug "Going to webfinger #{username}@#{domain}"
|
||||
|
||||
return FollowRemoteAccountService.new.call("#{username}@#{domain}")
|
||||
rescue Nokogiri::XML::XPath::SyntaxError
|
||||
Rails.logger.debug "Invalid XML or missing namespace"
|
||||
end
|
||||
end
|
||||
|
@ -31,5 +31,8 @@ class FetchRemoteStatusService < BaseService
|
||||
Rails.logger.debug "Going to webfinger #{username}@#{domain}"
|
||||
|
||||
return FollowRemoteAccountService.new.call("#{username}@#{domain}")
|
||||
rescue Nokogiri::XML::XPath::SyntaxError
|
||||
Rails.logger.debug "Invalid XML or missing namespace"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user