mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
GRA-414: add verbose level 4 support to netclient
This commit is contained in:
parent
2f21687d86
commit
ec0a94ad59
2 changed files with 9 additions and 1 deletions
|
@ -90,7 +90,7 @@ func GetCommands(cliFlags []cli.Flag) []*cli.Command {
|
|||
Flags: cliFlags,
|
||||
Action: func(c *cli.Context) error {
|
||||
// set max verbosity for daemon regardless
|
||||
logger.Verbosity = 3
|
||||
logger.Verbosity = 4
|
||||
err := command.Daemon()
|
||||
return err
|
||||
},
|
||||
|
@ -116,5 +116,7 @@ func parseVerbosity(c *cli.Context) {
|
|||
logger.Verbosity = 2
|
||||
} else if c.Bool("vvv") {
|
||||
logger.Verbosity = 3
|
||||
} else if c.Bool("vvvv") {
|
||||
logger.Verbosity = 4
|
||||
}
|
||||
}
|
||||
|
|
|
@ -198,5 +198,11 @@ func GetFlags(hostname string) []cli.Flag {
|
|||
Value: false,
|
||||
Usage: "Netclient Verbosity level 3.",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "verbosity-level-4",
|
||||
Aliases: []string{"vvvv"},
|
||||
Value: false,
|
||||
Usage: "Netclient Verbosity level 4.",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue