浏览代码

log network as String to match the other log event in interface.go that emits network (#811)

Co-authored-by: Tricia Bogen <[email protected]>
Tricia 2 年之前
父节点
当前提交
0fc4d8192f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      main.go

+ 4 - 1
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)