Log error when optimized image file fails to store. (#8840)
This commit is contained in:
parent
a96eba9714
commit
98e9302c26
|
@ -110,6 +110,8 @@ class OptimizedImage < ActiveRecord::Base
|
|||
if url.present?
|
||||
thumbnail.url = url
|
||||
thumbnail.save
|
||||
else
|
||||
Rails.logger.error("Failed to store optimized image of size #{width}x#{height} from url: #{upload.url}\nTemp image path: #{temp_path}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue