Browse Source

Merge pull request #1442 from manuelbuil/logging

Log all config created using CLI flags
Luther Monson 3 years ago
parent
commit
80f6643273
1 changed files with 3 additions and 0 deletions
  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")