Skip to content

Commit d9b140c

Browse files
committed
add logs
1 parent 3c5ac53 commit d9b140c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controllers/route_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,18 @@ func RegisterAllRouteControllers(
116116
for _, routeInfo := range routeInfos {
117117
gv := routeInfo.gatewayApiType.GetObjectKind().GroupVersionKind().GroupVersion().String()
118118
kind := routeInfo.gatewayApiType.GetObjectKind().GroupVersionKind().Kind
119+
fmt.Printf("GVK: %s, %s", gv, kind)
120+
log.Infof(context.TODO(), "GVK: %s, %s", gv, kind)
119121
if ok, err := k8s.IsGVKSupported(mgr, gv, kind); !ok {
122+
log.Infof(context.TODO(), "GVK not supported gv: %s, kind: %s", gv, kind)
120123
fmt.Printf("GVK not supported gv: %s, kind: %s", gv, kind)
121124
if err != nil {
125+
log.Infof(context.TODO(), "GVK not supported error: %s", err)
122126
fmt.Printf("GVK not supported error: %s", err)
123127
return nil
124128
}
125129
} else {
130+
log.Infof(context.TODO(), "GVK supported gv: %s, kind: %s", gv, kind)
126131
if err != nil {
127132
return err
128133
}

0 commit comments

Comments
 (0)