diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts index e0326b78dee1e617c2c8f48e42bc776b2b938563..e00fcf8c8916ce7e1369c62345eb9f6701b51866 100644 --- a/src/app/authorisation.service.ts +++ b/src/app/authorisation.service.ts @@ -188,6 +188,7 @@ public getKeys(id?: Identity) { /* Query ssh agent running on the apiserver * Tap the even stream to update the notifications */ + console.log('updateAgentContents called'); if (apiserver === undefined) { if (this.backendURI == null) { throwError('no backend to query'); @@ -195,6 +196,7 @@ public getKeys(id?: Identity) { apiserver = this.backendURI } } + console.log('updateAgentContents api server',apiserver); let headers = new HttpHeaders(); let options = { headers: headers, withCredentials: true}; @@ -212,8 +214,10 @@ public getKeys(id?: Identity) { } else { this.notifications.notify(""); }; + console.log('updating agent contents'); this.agentContents.next(resp) }), + catchError((e) => { console.error('updateAGentContents error',e) ; return of([])}) //tap((_) => this.notifications.notify("")) ) return agentpipe$ diff --git a/src/app/backend-selection.service.ts b/src/app/backend-selection.service.ts index d4f289e3d796b83621bfa88e37a31a94e506fb2f..6af57f0cf1162207c71fe70c2574c505efbcb2e2 100644 --- a/src/app/backend-selection.service.ts +++ b/src/app/backend-selection.service.ts @@ -20,6 +20,8 @@ export class BackendSelectionService { this.localapi = new BehaviorSubject(false); this.initApiServer(); this.getAPIServers(); + this.apiserver.subscribe((v) => console.log('apiserver change',v)); + this.apiservers.subscribe((v) => console.log('apiservers change',v)); }