From f958769cf7d7c9e244fa5852a1d90c2d15653c57 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 18 Feb 2022 18:15:08 -0500 Subject: [PATCH] Adds even more logging --- src/premium/subscription/subscriptionService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/premium/subscription/subscriptionService.ts b/src/premium/subscription/subscriptionService.ts index bdfe33d..46045cf 100644 --- a/src/premium/subscription/subscriptionService.ts +++ b/src/premium/subscription/subscriptionService.ts @@ -488,6 +488,8 @@ export class SubscriptionService implements Disposable { @debug() private async getOrCreateSession(createIfNeeded: boolean): Promise { + const cc = Logger.getCorrelationContext(); + let session: AuthenticationSession | null | undefined; this.updateStatusBar(true); @@ -508,6 +510,8 @@ export class SubscriptionService implements Disposable { this.logout(); return null; } + + Logger.error(ex, cc); } if (session == null) { @@ -518,7 +522,7 @@ export class SubscriptionService implements Disposable { try { await this.checkInAndValidate(session); } catch (ex) { - Logger.error(ex); + Logger.error(ex, cc); debugger; const name = session.account.label;