mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
Silence logs for OptimizedImage failures
This commit is contained in:
parent
ba1868b051
commit
24e1892d28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user