mirror of
https://github.com/discourse/discourse.git
synced 2025-06-17 19:42:36 +08:00
Silence logs for OptimizedImage failures
This commit is contained in:
@ -65,12 +65,8 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
if url.present?
|
if url.present?
|
||||||
thumbnail.url = url
|
thumbnail.url = url
|
||||||
thumbnail.save
|
thumbnail.save
|
||||||
else
|
|
||||||
Rails.logger.error("Failed to store optimized image #{width}x#{height} for #{upload.url}")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
|
||||||
Rails.logger.error("Failed to create optimized image #{width}x#{height} for #{upload.url}")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# close && remove temp file
|
# close && remove temp file
|
||||||
|
Reference in New Issue
Block a user