Remove bugsnag hit
This commit is contained in:
parent
86a7994d02
commit
8b94c17d0e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue