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] 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 e9387626..d1fa649a 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 {