浏览代码

Merge pull request #1442 from manuelbuil/logging

Log all config created using CLI flags
Luther Monson 3 年之前
父节点
当前提交
80f6643273
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      main.go

+ 3 - 0
main.go

@@ -189,6 +189,9 @@ func main() {
 
 	flagutil.SetFlagsFromEnv(flannelFlags, "FLANNELD")
 
+	// Log the config set via CLI flags
+	log.Infof("CLI flags config: %+v", opts)
+
 	// Validate flags
 	if opts.subnetLeaseRenewMargin >= 24*60 || opts.subnetLeaseRenewMargin <= 0 {
 		log.Error("Invalid subnet-lease-renew-margin option, out of acceptable range")