GRA-414: add verbose level 4 support to netclient

This commit is contained in:
Abhishek Kondur 2022-07-14 17:26:07 +04:00 committed by Matthew R. Kasun
parent 53af1900a8
commit 8ceab029bb
2 changed files with 9 additions and 1 deletions

View file

@ -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
}
}

View file

@ -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.",
},
}
}