mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:44:39 +08: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