From f5e0922c317ff74d723ba2cc78f0a343c09daab6 Mon Sep 17 00:00:00 2001 From: MrManPew <35897350+MrManPew@users.noreply.github.com> Date: Sun, 27 Sep 2020 12:39:20 -0400 Subject: [PATCH 1/2] Show debug level at startup I think it is efficient to also show the debug level at the startup. To verify that indeed the correct settings of the debuglevel started correctly. Especially when trying to capture rare bugs. --- lnd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnd.go b/lnd.go index e9387626f..d1fa649a8 100644 --- a/lnd.go +++ b/lnd.go @@ -200,9 +200,9 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error { }() // Show version at startup. - ltndLog.Infof("Version: %s commit=%s, build=%s, logging=%s", + ltndLog.Infof("Version: %s commit=%s, build=%s, logging=%s debuglevel=%s", build.Version(), build.Commit, build.Deployment, - build.LoggingType) + build.LoggingType, cfg.DebugLevel) var network string switch { From 72e4eab3b96af75cec07e11a15ca91bf8a4579d3 Mon Sep 17 00:00:00 2001 From: MrManPew <35897350+MrManPew@users.noreply.github.com> Date: Thu, 1 Oct 2020 18:02:16 -0400 Subject: [PATCH 2/2] Update lnd.go --- lnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index d1fa649a8..a598abd27 100644 --- a/lnd.go +++ b/lnd.go @@ -200,7 +200,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error { }() // Show version at startup. - ltndLog.Infof("Version: %s commit=%s, build=%s, logging=%s debuglevel=%s", + ltndLog.Infof("Version: %s commit=%s, build=%s, logging=%s, debuglevel=%s", build.Version(), build.Commit, build.Deployment, build.LoggingType, cfg.DebugLevel)