Skip to content

Commit

Permalink
chore: reduce logs
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed May 10, 2020
1 parent a4c2b73 commit e647cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ func (c *Controller) handleAddPod(key string) error {
}

if _, err := c.config.KubeClient.CoreV1().Pods(namespace).Patch(name, types.JSONPatchType, generatePatchPayload(pod.Annotations, op)); err != nil {
if k8serrors.IsNotFound(err) {
return nil
}
klog.Errorf("patch pod %s/%s failed %v", name, namespace, err)
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (c *Controller) handleUpdateService(key string) error {
klog.Errorf("failed to get tcp lb vips %v", err)
return err
}
klog.Infof("exist tcp vips are %v", vips)
klog.V(3).Infof("exist tcp vips are %v", vips)
for _, vip := range tcpVips {
if _, ok := vips[vip]; !ok {
klog.Infof("add vip %s to tcp lb", vip)
Expand Down

0 comments on commit e647cc6

Please sign in to comment.