Skip to content

Commit

Permalink
readding logging for cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Feb 17, 2020
1 parent c5d8d7c commit 39a2780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def self.subj_id_check(options = {})

Rails.logger.warn "[DoubleCheck] DoubleCheck #{response.results.results.length} events starting with _id #{response.results.to_a.first[:_id]}."
cursor = response.results.to_a.last[:sort]
Rails.logger.warn "[DoubleCheck] Cursor: #{cursor} "

events = response.results.results.map { |item| { uuid: item.uuid, subj_id: item.subj_id } }
SubjCheckJob.perform_later(events, options)
Expand Down

0 comments on commit 39a2780

Please sign in to comment.