mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 10:56:15 +08:00
FEATURE: group error message regarding image optimization failures
This commit is contained in:
parent
168ffd8384
commit
83fd308963
|
@ -255,7 +255,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||
if opts[:raise_on_error]
|
||||
raise e
|
||||
else
|
||||
Rails.logger.error("Could not optimize image #{to}: #{e.message}")
|
||||
Discourse.warn("Failed to optimize image", location: to, error_message: e.message)
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user