mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Missing registering debug/config flags on server subcommand
Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
parent
8d5f58f00e
commit
64ae6affc5
@ -13,7 +13,7 @@ var (
|
|||||||
Debug bool
|
Debug bool
|
||||||
DebugFlag = cli.BoolFlag{
|
DebugFlag = cli.BoolFlag{
|
||||||
Name: "debug",
|
Name: "debug",
|
||||||
Usage: "Turn on debug logs",
|
Usage: "(logging) Turn on debug logs",
|
||||||
Destination: &Debug,
|
Destination: &Debug,
|
||||||
EnvVar: version.ProgramUpper + "_DEBUG",
|
EnvVar: version.ProgramUpper + "_DEBUG",
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,8 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
|
|||||||
Before: SetupDebug(CheckSELinuxFlags),
|
Before: SetupDebug(CheckSELinuxFlags),
|
||||||
Action: action,
|
Action: action,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
|
ConfigFlag,
|
||||||
|
DebugFlag,
|
||||||
VLevel,
|
VLevel,
|
||||||
VModule,
|
VModule,
|
||||||
LogFile,
|
LogFile,
|
||||||
|
Loading…
Reference in New Issue
Block a user