Skip to content

Commit

Permalink
Notify error tracker if thumb processing errors
Browse files Browse the repository at this point in the history
Alchemy has an error tracking notifier. Let's use it.
  • Loading branch information
tvdeyen committed Nov 24, 2022
1 parent f6afc09 commit f5d694e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/alchemy/dragonfly/s3/create_picture_thumb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.call(variant, signature, uid)
# upload the processed image
image.store(path: uid)
rescue RuntimeError, Excon::Error => e
Rails.logger.warn(e)
ErrorTracking.notification_handler.call(e)
# destroy the thumb if processing or upload fails
thumb&.destroy
end
Expand Down

0 comments on commit f5d694e

Please sign in to comment.