v0.1.34 v0.1.34
Vernon Keenan 2021-01-27 13:50:15 -08:00
parent f7959d3333
commit f9bf88c55f
1 changed files with 3 additions and 3 deletions

View File

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