let's not generate an error when logging errors...

This commit is contained in:
Régis Hanol 2017-10-18 23:14:13 +02:00 committed by GitHub
parent f50d447881
commit c838f43a75

View File

@ -66,7 +66,7 @@ module Jobs
if upload.persisted?
downloaded_urls[src] = upload.url
else
log(:info, "Failed to pull hotlinked image for post: #{post_id}: #{src} - #{upload.errors.join("\n")}")
log(:info, "Failed to pull hotlinked image for post: #{post_id}: #{src} - #{upload.errors.full_messages.join("\n")}")
end
else
large_images << original_src