From 7f039980c120ab180ff6997499509ae45a168353 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 16 Apr 2018 19:17:58 -0700 Subject: [PATCH] lnd+cmd/lncli: allow users to disable logging sub-systems all together --- cmd/lncli/commands.go | 2 +- config.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index e46f7c6f..5ddd6ad1 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -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 =,=,... to set the log level for individual subsystems Use show to list available subsystems`, diff --git a/config.go b/config.go index 15ba4f29..0c39c25a 100644 --- a/config.go +++ b/config.go @@ -826,6 +826,8 @@ func validLogLevel(logLevel string) bool { case "error": fallthrough case "critical": + fallthrough + case "off": return true } return false