From 6a8779f8c1e596ed6f6c55ebed64533b5c84b4a4 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 18 Feb 2022 17:45:11 -0500 Subject: [PATCH] Adds more logging --- src/premium/subscription/subscriptionService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/premium/subscription/subscriptionService.ts b/src/premium/subscription/subscriptionService.ts index 8c24ff3..bdfe33d 100644 --- a/src/premium/subscription/subscriptionService.ts +++ b/src/premium/subscription/subscriptionService.ts @@ -353,6 +353,7 @@ export class SubscriptionService implements Disposable { } } + @debug({ args: { 0: s => s?.account.label } }) private async checkInAndValidate(session: AuthenticationSession): Promise { try { const checkInData = { @@ -460,6 +461,7 @@ export class SubscriptionService implements Disposable { private _session: AuthenticationSession | null | undefined; @gate() + @debug() private async ensureSession(createIfNeeded: boolean): Promise { if (this._sessionPromise != null && this._session === undefined) { this._session = await this._sessionPromise; @@ -484,6 +486,7 @@ export class SubscriptionService implements Disposable { return this._session ?? undefined; } + @debug() private async getOrCreateSession(createIfNeeded: boolean): Promise { let session: AuthenticationSession | null | undefined;