Skip to content

Commit

Permalink
fix: log error
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jul 15, 2020
1 parent 21381e3 commit be7c68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (csh cniServerHandler) handleAdd(req *restful.Request, resp *restful.Respon
}

if pod.Annotations[fmt.Sprintf(util.AllocatedAnnotationTemplate, podRequest.Provider)] != "true" {
err := fmt.Errorf("no address allocated to pod %s/%s, please see kube-ovn-controller logs to find errors", pod.Name, pod.Name)
err := fmt.Errorf("no address allocated to pod %s/%s, please see kube-ovn-controller logs to find errors", pod.Namespace, pod.Name)
klog.Error(err)
if err := resp.WriteHeaderAndEntity(http.StatusInternalServerError, request.CniResponse{Err: err.Error()}); err != nil {
klog.Errorf("failed to write response, %v", err)
Expand Down

0 comments on commit be7c68f

Please sign in to comment.