Skip to content

Commit

Permalink
lnd+cmd/lncli: allow users to disable logging sub-systems all together
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Apr 17, 2018
1 parent 09291d6 commit 7f03998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lncli/commands.go
Expand Up @@ -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`,
Expand Down
2 changes: 2 additions & 0 deletions config.go
Expand Up @@ -826,6 +826,8 @@ func validLogLevel(logLevel string) bool {
case "error":
fallthrough
case "critical":
fallthrough
case "off":
return true
}
return false
Expand Down

0 comments on commit 7f03998

Please sign in to comment.