Browse Source

Adds more logging

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

+ 3
- 0
src/premium/subscription/subscriptionService.ts View File

@ -353,6 +353,7 @@ export class SubscriptionService implements Disposable {
}
}
@debug<SubscriptionService['checkInAndValidate']>({ args: { 0: s => s?.account.label } })
private async checkInAndValidate(session: AuthenticationSession): Promise<void> {
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<AuthenticationSession | undefined> {
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<AuthenticationSession | null> {
let session: AuthenticationSession | null | undefined;

Loading…
Cancel
Save