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

This commit is contained in:
Olaoluwa Osuntokun committed 2018-04-16 19:18:04 -07:00
1 parent 09291d6aeb
commit 7f039980c1
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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`,
+2
View File
@@ -826,6 +826,8 @@ func validLogLevel(logLevel string) bool {
case "error":
fallthrough
case "critical":
fallthrough
case "off":
return true
}
return false