mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Log error when optimized image file fails to store. (#8840)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user