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

tokers 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 7b62375  fix: some wrong or invalid logs (#804)
7b62375 is described below

commit 7b6237521b322c3662bece3ab701661f58bed347
Author: Nic <[email protected]>
AuthorDate: Mon Dec 20 18:33:51 2021 +0800

    fix: some wrong or invalid logs (#804)
---
 pkg/ingress/ingress.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pkg/ingress/ingress.go b/pkg/ingress/ingress.go
index da136c2..b4d69a8 100644
--- a/pkg/ingress/ingress.go
+++ b/pkg/ingress/ingress.go
@@ -262,11 +262,11 @@ func (c *ingressController) onAdd(obj interface{}) {
        valid := c.isIngressEffective(ing)
        if valid {
                log.Debugw("ingress add event arrived",
-                       zap.Any("object", ing),
+                       zap.Any("object", obj),
                )
        } else {
                log.Debugw("ignore noneffective ingress add event",
-                       zap.Any("object", ing),
+                       zap.Any("object", obj),
                )
                return
        }
@@ -297,8 +297,8 @@ func (c *ingressController) onUpdate(oldObj, newObj 
interface{}) {
        valid := c.isIngressEffective(curr)
        if valid {
                log.Debugw("ingress update event arrived",
-                       zap.Any("new object", oldObj),
-                       zap.Any("old object", newObj),
+                       zap.Any("new object", newObj),
+                       zap.Any("old object", oldObj),
                )
        } else {
                log.Debugw("ignore noneffective ingress update event",

Reply via email to