From e572c860ccfe9d1e17360a1460df08bd91b3163c Mon Sep 17 00:00:00 2001 From: Sam Vevang Date: Wed, 26 Jul 2023 16:16:28 -0500 Subject: [PATCH] Log the remaining count --- app/models/apple/api_waiting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/apple/api_waiting.rb b/app/models/apple/api_waiting.rb index fc34d1378..f7534879e 100644 --- a/app/models/apple/api_waiting.rb +++ b/app/models/apple/api_waiting.rb @@ -8,7 +8,7 @@ module ApiWaiting def self.wait_for(remaining_records) t_beg = Time.now.utc loop do - Rails.logger.info(".wait_for", {remaining_records: remaining_records, have_waited: Time.now.utc - t_beg}) + Rails.logger.info(".wait_for", {remaining_record_count: remaining_records.count, have_waited: Time.now.utc - t_beg}) # Return `timeout == true` if we've waited too long break [true, remaining_records] if Time.now.utc - t_beg > self::API_WAIT_TIMEOUT