Skip to content

Commit 09a0d65

Browse files
authored
Improve UI API/controller logging to ease troubleshooting (#1966)
* Add logging to ui controller HP job info * Change case * Remove extra logging
1 parent 293a785 commit 09a0d65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/new-ui/v1beta1/hp.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
3636
experimentName := r.URL.Query()["experimentName"][0]
3737
namespace := r.URL.Query()["namespace"][0]
3838

39+
log.Printf("Start FetchHPJobInfo for Experiment: %v in namespace: %v", experimentName, namespace)
40+
3941
conn, c := k.connectManager()
4042
defer conn.Close()
4143

@@ -46,7 +48,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
4648
http.Error(w, err.Error(), http.StatusInternalServerError)
4749
return
4850
}
49-
log.Printf("Got Experiment")
51+
log.Printf("Got Experiment %v", experimentName)
5052
metricsList := map[string]int{}
5153
metricsName := experiment.Spec.Objective.ObjectiveMetricName
5254
resultText += "," + metricsName
@@ -69,7 +71,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
6971
http.Error(w, err.Error(), http.StatusInternalServerError)
7072
return
7173
}
72-
log.Printf("Got Trial List")
74+
log.Printf("Got Trial List - Count: %v", len(trialList.Items))
7375

7476
// append a column for the Pipeline UID associated with the Trial
7577
if havePipelineUID(trialList.Items) {

0 commit comments

Comments
 (0)