lnd+cmd/lncli: allow users to disable logging sub-systems all together
This commit is contained in:
parent
09291d6aeb
commit
7f039980c1
@ -2280,7 +2280,7 @@ func getNetworkInfo(ctx *cli.Context) error {
|
|||||||
var debugLevelCommand = cli.Command{
|
var debugLevelCommand = cli.Command{
|
||||||
Name: "debuglevel",
|
Name: "debuglevel",
|
||||||
Usage: "Set the debug level.",
|
Usage: "Set the debug level.",
|
||||||
Description: `Logging level for all subsystems {trace, debug, info, warn, error, critical}
|
Description: `Logging level for all subsystems {trace, debug, info, warn, error, critical, off}
|
||||||
You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set the log level for individual subsystems
|
You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set the log level for individual subsystems
|
||||||
|
|
||||||
Use show to list available subsystems`,
|
Use show to list available subsystems`,
|
||||||
|
@ -826,6 +826,8 @@ func validLogLevel(logLevel string) bool {
|
|||||||
case "error":
|
case "error":
|
||||||
fallthrough
|
fallthrough
|
||||||
case "critical":
|
case "critical":
|
||||||
|
fallthrough
|
||||||
|
case "off":
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user