mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
lnd+cmd/lncli: allow users to disable logging sub-systems all together
This commit is contained in:
parent
09291d6aeb
commit
7f039980c1
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
|
||||
|
|
Loading…
Add table
Reference in a new issue