Remove bugsnag hit

This commit is contained in:
Seth Call 2021-03-16 15:23:56 -05:00
parent 86a7994d02
commit 8b94c17d0e
1 changed files with 8 additions and 5 deletions

View File

@ -645,11 +645,14 @@ module JamRuby
latest_seen = nil
Recurly::Transaction.find_each(options) do |transaction |
if AffiliateDistribution.find_by_external_id(transaction.uuid)
begin
Bugsnag.notify("ActiveRecord::RecordNotUnique: duplicate affiliate_distribution for Recurly transaction uuid #{transaction.uuid} was prevented from been added.")
rescue => exception
Rails.logger.error(exception) unless Rails.env.test?
end
# this is now a normal path, because we will pick up the last transaction we saw, since we use
# the last transaction time to feed `latest_seen`.
#begin
# Bugsnag.notify("ActiveRecord::RecordNotUnique: duplicate affiliate_distribution for Recurly transaction uuid #{transaction.uuid} was prevented from been added.")
#rescue => exception
# Rails.logger.error(exception) unless Rails.env.test?
#end
next
end