Skip to content

Commit

Permalink
minor: optimize log message when the endpoint does not have a corresp…
Browse files Browse the repository at this point in the history
…onding service (#458)
  • Loading branch information
lingsamuel committed May 19, 2021
1 parent 63ae709 commit a7e187b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingress/endpoint.go
Expand Up @@ -90,7 +90,7 @@ func (c *endpointsController) sync(ctx context.Context, ev *types.Event) error {
svc, err := c.controller.svcLister.Services(ep.Namespace).Get(ep.Name)
if err != nil {
if k8serrors.IsNotFound(err) {
log.Warnf("service %s/%s was deleted", ep.Namespace, ep.Name)
log.Infof("service %s/%s not found", ep.Namespace, ep.Name)
return nil
}
log.Errorf("failed to get service %s/%s: %s", ep.Namespace, ep.Name, err)
Expand Down

0 comments on commit a7e187b

Please sign in to comment.