Browse Source

Adds even more logging

main
Eric Amodio 2 years ago
parent
commit
f958769cf7
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/premium/subscription/subscriptionService.ts

+ 5
- 1
src/premium/subscription/subscriptionService.ts View File

@ -488,6 +488,8 @@ export class SubscriptionService implements Disposable {
@debug() @debug()
private async getOrCreateSession(createIfNeeded: boolean): Promise<AuthenticationSession | null> { private async getOrCreateSession(createIfNeeded: boolean): Promise<AuthenticationSession | null> {
const cc = Logger.getCorrelationContext();
let session: AuthenticationSession | null | undefined; let session: AuthenticationSession | null | undefined;
this.updateStatusBar(true); this.updateStatusBar(true);
@ -508,6 +510,8 @@ export class SubscriptionService implements Disposable {
this.logout(); this.logout();
return null; return null;
} }
Logger.error(ex, cc);
} }
if (session == null) { if (session == null) {
@ -518,7 +522,7 @@ export class SubscriptionService implements Disposable {
try { try {
await this.checkInAndValidate(session); await this.checkInAndValidate(session);
} catch (ex) { } catch (ex) {
Logger.error(ex);
Logger.error(ex, cc);
debugger; debugger;
const name = session.account.label; const name = session.account.label;

Loading…
Cancel
Save