소스 검색

some logging

Achilleas Tzenetopoulos 5 년 전
부모
커밋
1a38063363
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

+ 2 - 0
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -122,6 +122,8 @@ func customResourceScorer(nodeName string) int64 {
 		q := client.NewQuery(command, "evolve", "")
 		if response, err := c.Query(q); err == nil && response.Error() == nil {
 			klog.Infof("%v", response.Results)
+		} else if err != nil {
+			klog.Infof("Error: %v", err)
 		}
 	} else {
 		klog.Infof("Error finding the uuid: %v", ok)