From 6264d3c50408fc4f41e09e911bcb59b6d51c97bb Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Fri, 29 Mar 2019 10:50:17 +0100 Subject: [PATCH] some corrections --- wg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wg.go b/wg.go index cbf6aa4..a3db6eb 100644 --- a/wg.go +++ b/wg.go @@ -339,11 +339,11 @@ func SyncRoutes(cfg *Config, link netlink.Link, log logrus.FieldLogger) error { log.Info("extra manual route found") // RTPROT_BOOT is default one when other proto isn't defined if !(rt.Protocol == cfg.RouteProtocol || rt.Protocol == RTPROT_BOOT && cfg.RouteProtocol == 0) { - log.Debug("skipping route deletion, not owned by this daemon") + log.Infof("skipping route deletion, not owned by this daemon") continue } if err := netlink.RouteDel(&rt); err != nil { - log.WithError(err).Error("cannot setup route") + log.WithError(err).Error("cannot delete route") return err } log.Info("route deleted")