lnd+cmd/lncli: allow users to disable logging sub-systems all together

This commit is contained in:
Olaoluwa Osuntokun 2018-04-16 19:17:58 -07:00
parent 09291d6aeb
commit 7f039980c1
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 3 additions and 1 deletions

@ -2280,7 +2280,7 @@ func getNetworkInfo(ctx *cli.Context) error {
var debugLevelCommand = cli.Command{
Name: "debuglevel",
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
Use show to list available subsystems`,

@ -826,6 +826,8 @@ func validLogLevel(logLevel string) bool {
case "error":
fallthrough
case "critical":
fallthrough
case "off":
return true
}
return false