wilfred-s commented on a change in pull request #95: [YUNIKORN-25] Logging 
improvements
URL: 
https://github.com/apache/incubator-yunikorn-k8shim/pull/95#discussion_r406346413
 
 

 ##########
 File path: pkg/cache/task.go
 ##########
 @@ -296,8 +303,7 @@ func (task *Task) postTaskAllocated(event *fsm.Event) {
                        zap.String("podUID", string(task.pod.UID)))
 
                if err := 
task.context.apiProvider.GetAPIs().KubeClient.Bind(task.pod, nodeID); err != 
nil {
-                       errorMessage = fmt.Sprintf("bind pod failed, name: %s, 
uid: %s, %#v",
-                               task.pod.Name, task.pod.UID, err)
+                       errorMessage = fmt.Sprintf("bind pod volumes failed, 
name: %s, %#v", task.alias, err)
 
 Review comment:
   error does not implement GoStringer, why use `%#v`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to