Skip to content

Commit

Permalink
Log all config created using CLI flags
Browse files Browse the repository at this point in the history
It helps debugging

Signed-off-by: Manuel Buil <mbuil@suse.com>
  • Loading branch information
manuelbuil committed May 21, 2021
1 parent e634dab commit cedeb93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cedeb93

Please # to comment.