ronething commented on code in PR #2453:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/2453#discussion_r2184558484


##########
internal/controller/apisixroute_controller.go:
##########
@@ -301,12 +301,24 @@ func (r *ApisixRouteReconciler) validateBackends(ctx 
context.Context, tc *provid
                backends[serviceNN] = struct{}{}
 
                if err := r.Get(ctx, serviceNN, &service); err != nil {
-                       if err := client.IgnoreNotFound(err); err == nil {
+                       if err = client.IgnoreNotFound(err); err == nil {
                                r.Log.Error(errors.New("service not found"), 
"Service", serviceNN)
                                continue
                        }
                        return err
                }
+
+               // try to get apisixupstream with the same name as the backend 
service
+               log.Debugf("try to get apisixupstream with the same name as the 
backend service: %s", serviceNN)

Review Comment:
   We generally don't use Debugf? Can it be changed to Debugw?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to