From f9bf88c55f0c7cc01073399791d86c481e7ddb10 Mon Sep 17 00:00:00 2001 From: Vernon Keenan Date: Wed, 27 Jan 2021 13:50:15 -0800 Subject: [PATCH] logs --- app/root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/root.go b/app/root.go index b97b9ba..81ae203 100644 --- a/app/root.go +++ b/app/root.go @@ -29,12 +29,12 @@ const dateTimeFormatAlt = "2006-01-02 15:04:05" const dateFormatAlt = "1/2/2006" // InitConfig exports the config initialization func -func InitConfig(systemName string) { +func InitConfig(systemName string, initalLogLevel zapcore.Level) { if configured { return } - sugar = logger.New(zapcore.InfoLevel) - sugar.Info("app.InitConfig: 📥 %s", systemName) + sugar = logger.New(initalLogLevel) + sugar.Infof("app.InitConfig: 📥 %s", systemName) appViper.SetConfigType("yaml") appViper.SetConfigName(systemName) appViper.AddConfigPath("/etc/taxnexus")