From a86a52cb7c658177ba9b780babe87fd41e21ff40 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 18 Aug 2020 14:00:51 +0100 Subject: [PATCH] Decruft the broker by removing Event interface (#1940) --- registry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/registry.go b/registry.go index c762d7b..e02bc41 100644 --- a/registry.go +++ b/registry.go @@ -300,9 +300,12 @@ func (r *rtr) watchRegistry(w registry.Watcher) error { // don't process nil entries if res.Service == nil { + logger.Trace("Received a nil service") continue } + logger.Tracef("Router dealing with next route %s %+v\n", res.Action, res.Service) + // get the services domain from metadata. Fallback to wildcard. domain := getDomain(res.Service) @@ -376,6 +379,7 @@ func (r *rtr) start() error { case <-r.exit: return default: + logger.Tracef("Router starting registry watch") w, err := r.options.Registry.Watch(registry.WatchDomain(registry.WildcardDomain)) if err != nil { if logger.V(logger.DebugLevel, logger.DefaultLogger) {