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")