From 734e5207d00ff3d5ba404115429af6e4d06e65fe Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Mon, 4 Dec 2023 16:06:32 +1100 Subject: [PATCH] add some debug statements --- src/app/authorisation.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts index 25b0f45..402efd2 100644 --- a/src/app/authorisation.service.ts +++ b/src/app/authorisation.service.ts @@ -83,7 +83,7 @@ export class AuthorisationService { filter((v) => v !== null && v !== undefined), take(1), switchMap((v) => this.getSessionToken(v)) - ).subscribe((v) => { this.sessionToken = v; window.localStorage.setItem('strudel2_session', v); this.refresh() } ); + ).subscribe((v) => { this.sessionToken = v; console.log('sub session token is',this.sessionToken); window.localStorage.setItem('strudel2_session', v); this.refresh() } ); // every time the list of certs/keys changes update the list of whats logged in and out // sshAuthzServers$ won't really "change" except that it needs to be retrieved first time @@ -437,6 +437,8 @@ private getSessionToken(apiserver: any): Observable<any> { if (this.ipcService.useIpc) { return this.ipcService.addCert(data); } else { + + console.log('adding the certificate, session token is ',this.sessionToken); if (this.sessionToken === null) { throwError('Session token is null how is this possible') -- GitLab