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()
private async getOrCreateSession(createIfNeeded: boolean): Promise<AuthenticationSession | null> {
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;

Loading…
Cancel
Save