mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Read YAML keys in lowercase internally
This commit is contained in:
parent
3815e18027
commit
63e3a7f6bd
5 changed files with 101 additions and 35 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue