Silence logs for OptimizedImage failures

This commit is contained in:
Robin Ward 2017-05-09 14:59:46 -04:00
parent ba1868b051
commit 24e1892d28

View File

@ -65,12 +65,8 @@ class OptimizedImage < ActiveRecord::Base
if url.present?
thumbnail.url = url
thumbnail.save
else
Rails.logger.error("Failed to store optimized image #{width}x#{height} for #{upload.url}")
end
end
else
Rails.logger.error("Failed to create optimized image #{width}x#{height} for #{upload.url}")
end
# close && remove temp file