diff --git a/pkg/cli/flags.go b/pkg/cli/flags.go index 5c5d0fcf08a3..09c97bedc4f8 100644 --- a/pkg/cli/flags.go +++ b/pkg/cli/flags.go @@ -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) } }