This is an automated email from the ASF dual-hosted git repository.

kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new a7e187b  minor: optimize log message when the endpoint does not have a 
corresponding service (#458)
a7e187b is described below

commit a7e187bd3a11218c0e24bd61974bad22becccc95
Author: Sarasa Kisaragi <[email protected]>
AuthorDate: Wed May 19 13:41:54 2021 +0800

    minor: optimize log message when the endpoint does not have a corresponding 
service (#458)
---
 pkg/ingress/endpoint.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/ingress/endpoint.go b/pkg/ingress/endpoint.go
index 6514d91..fbf64f3 100644
--- a/pkg/ingress/endpoint.go
+++ b/pkg/ingress/endpoint.go
@@ -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)

Reply via email to