Read YAML keys in lowercase internally

This commit is contained in:
Sergey Stepanov 2023-05-10 22:08:01 +03:00
parent 3815e18027
commit 63e3a7f6bd
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
5 changed files with 101 additions and 35 deletions

View file

@ -14,11 +14,10 @@ func main() {
conf.ParseFlags()
log := logger.NewConsole(conf.Coordinator.Debug, "c", false)
log.Info().Msgf("version %s", Version)
log.Info().Msgf("conf version: %v", conf.Version)
log.Info().Msgf("conf: v%v", conf.Version)
if log.GetLevel() < logger.InfoLevel {
log.Debug().Msgf("config: %+v", conf)
log.Debug().Msgf("conf: %+v", conf)
}
c := coordinator.New(conf, log)
c.Start()

View file

@ -18,9 +18,9 @@ func run() {
log := logger.NewConsole(conf.Worker.Debug, "w", false)
log.Info().Msgf("version %s", Version)
log.Info().Msgf("conf version: %v", conf.Version)
log.Info().Msgf("conf: v%v", conf.Version)
if log.GetLevel() < logger.InfoLevel {
log.Debug().Msgf("config: %+v", conf)
log.Debug().Msgf("conf: %+v", conf)
}
done := os.ExpectTermination()