fix: some wrong or invalid logs (#804)
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 @@
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 @@
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",