Skip to content
Snippets Groups Projects
Commit f1d360ff authored by Chris Hines's avatar Chris Hines
Browse files

more debugging points

parent 786cd63f
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!61Test,!59Dev
Pipeline #10414 passed
...@@ -188,6 +188,7 @@ public getKeys(id?: Identity) { ...@@ -188,6 +188,7 @@ public getKeys(id?: Identity) {
/* Query ssh agent running on the apiserver /* Query ssh agent running on the apiserver
* Tap the even stream to update the notifications * Tap the even stream to update the notifications
*/ */
console.log('updateAgentContents called');
if (apiserver === undefined) { if (apiserver === undefined) {
if (this.backendURI == null) { if (this.backendURI == null) {
throwError('no backend to query'); throwError('no backend to query');
...@@ -195,6 +196,7 @@ public getKeys(id?: Identity) { ...@@ -195,6 +196,7 @@ public getKeys(id?: Identity) {
apiserver = this.backendURI apiserver = this.backendURI
} }
} }
console.log('updateAgentContents api server',apiserver);
let headers = new HttpHeaders(); let headers = new HttpHeaders();
let options = { headers: headers, withCredentials: true}; let options = { headers: headers, withCredentials: true};
...@@ -212,8 +214,10 @@ public getKeys(id?: Identity) { ...@@ -212,8 +214,10 @@ public getKeys(id?: Identity) {
} else { } else {
this.notifications.notify(""); this.notifications.notify("");
}; };
console.log('updating agent contents');
this.agentContents.next(resp) this.agentContents.next(resp)
}), }),
catchError((e) => { console.error('updateAGentContents error',e) ; return of([])})
//tap((_) => this.notifications.notify("")) //tap((_) => this.notifications.notify(""))
) )
return agentpipe$ return agentpipe$
......
...@@ -20,6 +20,8 @@ export class BackendSelectionService { ...@@ -20,6 +20,8 @@ export class BackendSelectionService {
this.localapi = new BehaviorSubject(false); this.localapi = new BehaviorSubject(false);
this.initApiServer(); this.initApiServer();
this.getAPIServers(); this.getAPIServers();
this.apiserver.subscribe((v) => console.log('apiserver change',v));
this.apiservers.subscribe((v) => console.log('apiservers change',v));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment