Skip to content

Commit

Permalink
Merge pull request #58946 from knz/20210113-mt-flags
Browse files Browse the repository at this point in the history
release-20.2: ensure that `cockroach mt start-sql` knows about log flags
  • Loading branch information
knz authored Jan 13, 2021
2 parents ac19939 + 2321e4b commit 5471a53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,15 @@ func init() {

stringSliceFlag(f, &serverCfg.SQLConfig.TenantKVAddrs, cliflags.KVAddrs)
varFlag(f, &startCtx.logDir, cliflags.LogDir)
varFlag(f,
pflag.PFlagFromGoFlag(flag.Lookup(logflags.LogFilesCombinedMaxSizeName)).Value,
cliflags.LogDirMaxSize)
varFlag(f,
pflag.PFlagFromGoFlag(flag.Lookup(logflags.LogFileMaxSizeName)).Value,
cliflags.LogFileMaxSize)
varFlag(f,
pflag.PFlagFromGoFlag(flag.Lookup(logflags.LogFileVerbosityThresholdName)).Value,
cliflags.LogFileVerbosity)
}
}

Expand Down

0 comments on commit 5471a53

Please sign in to comment.