Skip to content

Commit de79651

Browse files
committed
router: Cleanup logging of routing state changes
1 parent 7c42009 commit de79651

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/router/template/plugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (p *TemplatePlugin) HandleRoute(eventType watch.EventType, route *routeapi.
186186
case watch.Added, watch.Modified:
187187
p.Router.AddRoute(route)
188188
case watch.Deleted:
189-
glog.V(4).Infof("Deleting route %v", route)
189+
glog.V(4).Infof("Deleting route %s/%s", route.Namespace, route.Name)
190190
p.Router.RemoveRoute(route)
191191
}
192192
return nil

pkg/router/template/router.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func (r *templateRouter) AddRoute(route *routeapi.Route) {
651651
return
652652
}
653653

654-
glog.V(4).Infof("Updating route %v", route)
654+
glog.V(4).Infof("Updating route %s/%s", route.Namespace, route.Name)
655655

656656
// Delete the route first, because modify is to be treated as delete+add
657657
r.RemoveRoute(route)
@@ -662,7 +662,7 @@ func (r *templateRouter) AddRoute(route *routeapi.Route) {
662662
// is having stale service units accumulate with the attendant
663663
// cost to router memory usage.
664664
} else {
665-
glog.V(4).Infof("Adding route %v", route)
665+
glog.V(4).Infof("Adding route %s/%s", route.Namespace, route.Name)
666666
}
667667

668668
// Add service units referred to by the config

0 commit comments

Comments
 (0)