Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage * Update spec for debug block syntax
This commit is contained in:
@@ -285,7 +285,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||
|
||||
media_attachments
|
||||
rescue Addressable::URI::InvalidURIError => e
|
||||
Rails.logger.debug "Invalid URL in attachment: #{e}"
|
||||
Rails.logger.debug { "Invalid URL in attachment: #{e}" }
|
||||
media_attachments
|
||||
end
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ class LinkDetailsExtractor
|
||||
|
||||
structured_data
|
||||
rescue Oj::ParseError, EncodingError
|
||||
Rails.logger.debug("Invalid JSON-LD in #{@original_url}")
|
||||
Rails.logger.debug { "Invalid JSON-LD in #{@original_url}" }
|
||||
next
|
||||
end.first
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user