mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
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…
x
Reference in New Issue
Block a user