From 8ed34fb4a07810343f9983158d154d3dfa649555 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Wed, 23 Jul 2025 12:49:06 -0300 Subject: [PATCH] Increase log coverage for processing backup refresh and credential submission. --- .../java/org/thoughtcrime/securesms/jobs/BackupRefreshJob.kt | 2 ++ .../securesms/jobs/InAppPaymentRecurringContextJob.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupRefreshJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupRefreshJob.kt index 598b1162ba..27d38000d8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupRefreshJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupRefreshJob.kt @@ -49,6 +49,8 @@ class BackupRefreshJob private constructor( .build() ) ) + } else { + Log.i(TAG, "Do not need to refresh backups. Last refresh: ${lastCheckIn.inWholeMilliseconds}") } } diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentRecurringContextJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentRecurringContextJob.kt index 8fe4256dd3..863a2ffa8e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentRecurringContextJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentRecurringContextJob.kt @@ -190,9 +190,10 @@ class InAppPaymentRecurringContextJob private constructor( } if (hasEntitlementAlready(updatedInAppPayment, subscription.endOfCurrentPeriod)) { - info("Already have entitlement for this badge. Marking complete.") + info("Already have entitlement for this InAppPayment of type ${updatedInAppPayment.type}. Marking complete.") markInAppPaymentCompleted(updatedInAppPayment, subscription) } else { + info("No entitlement for InAppPayment of type ${updatedInAppPayment.type}. Submitting and validating credentials.") submitAndValidateCredentials(updatedInAppPayment, subscription, requestContext) } }