diff --git a/services/web/app/src/Features/Subscription/RecurlyWrapper.js b/services/web/app/src/Features/Subscription/RecurlyWrapper.js index 9f8bfb1a1e..c464a05e2c 100644 --- a/services/web/app/src/Features/Subscription/RecurlyWrapper.js +++ b/services/web/app/src/Features/Subscription/RecurlyWrapper.js @@ -472,6 +472,9 @@ const RecurlyWrapper = { (response.statusCode !== 404 || !expect404) && (response.statusCode !== 422 || !expect422) ) { + if (options.headers.Authorization) { + options.headers.Authorization = 'REDACTED' + } logger.warn( { err: error, diff --git a/services/web/scripts/recurly/resync_subscriptions.js b/services/web/scripts/recurly/resync_subscriptions.js index a0b081030d..cb826c0719 100644 --- a/services/web/scripts/recurly/resync_subscriptions.js +++ b/services/web/scripts/recurly/resync_subscriptions.js @@ -30,12 +30,16 @@ const ScriptLogger = { ScriptLogger.mismatchSubscriptionsCount += 1 const mismatchReasonsString = JSON.stringify(mismatchReasons) if (ScriptLogger.allMismatchReasons[mismatchReasonsString]) { - ScriptLogger.allMismatchReasons[mismatchReasonsString].push( - subscription._id - ) + ScriptLogger.allMismatchReasons[mismatchReasonsString].push({ + id: subscription._id, + name: subscription.planCode, + }) } else { ScriptLogger.allMismatchReasons[mismatchReasonsString] = [ - subscription._id, + { + id: subscription._id, + name: subscription.planCode, + }, ] } },