Skip to content

Commit

Permalink
reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 5, 2020
1 parent 30c9277 commit b726c9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def self.import_by_id(options={})

count
rescue Elasticsearch::Transport::Transport::Errors::RequestEntityTooLarge, Faraday::ConnectionFailed, ActiveRecord::LockWaitTimeout => error
Rails.logger.info "[Elasticsearch] Error #{error.message} importing claims with IDs #{id} - #{(id + 499)}."
Rails.logger.error "[Elasticsearch] Error #{error.message} importing claims with IDs #{id} - #{(id + 499)}."

count = 0

Expand All @@ -354,8 +354,6 @@ def self.import_by_id(options={})
count += 1
end

Rails.logger.info "[Elasticsearch] Imported #{count} claims with IDs #{id} - #{(id + 499)}."

count
end
end

0 comments on commit b726c9a

Please sign in to comment.