From 0fc4d8192f0bf60cb0288502826633145fddadba Mon Sep 17 00:00:00 2001 From: Tricia <95389395+asymmetricia@users.noreply.github.com> Date: Mon, 23 Jan 2023 11:05:35 -0800 Subject: [PATCH] log network as String to match the other log event in interface.go that emits network (#811) Co-authored-by: Tricia Bogen --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 71bd233..99fe72c 100644 --- a/main.go +++ b/main.go @@ -202,7 +202,10 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg hostMap := NewHostMap(l, "main", tunCidr, preferredRanges) hostMap.metricsEnabled = c.GetBool("stats.message_metrics", false) - l.WithField("network", hostMap.vpnCIDR).WithField("preferredRanges", hostMap.preferredRanges).Info("Main HostMap created") + l. + WithField("network", hostMap.vpnCIDR.String()). + WithField("preferredRanges", hostMap.preferredRanges). + Info("Main HostMap created") /* config.SetDefault("promoter.interval", 10)