From d1fc1f2f2cd9c4de55f43d083110cd78e84f045e Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Tue, 26 Mar 2019 14:35:31 +0100 Subject: [PATCH] small update --- wg.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wg.go b/wg.go index 58b1326..fc41301 100644 --- a/wg.go +++ b/wg.go @@ -158,7 +158,7 @@ func (cfg *Config) Sync(iface string, logger logrus.FieldLogger) error { return err } - log.Info("Successfully setup device", "iface", iface) + log.Info("Successfully setup device") return nil } @@ -220,8 +220,12 @@ func syncRoutes(link netlink.Link, cfg *Config, log logrus.FieldLogger) error { presentRoutes := make(map[string]int, 0) for _, r := range routes { + log := log.WithField("route", r.Dst.String()) if r.Table == cfg.Table { presentRoutes[r.Dst.String()] = 1 + log.Debug("detected existing route") + } else { + log.Debug("wrong table for route, skipping") } }