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.
This commit is contained in:
MrManPew authored and GitHub committed 2020-09-27 12:39:20 -04:00
1 parent fd962d322a
commit f5e0922c31
1 file changed
+2 -2
+2 -2
View File
@@ -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 {