jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

Allow control over log level on server #490

Open jkomoros opened 7 years ago

jkomoros commented 7 years ago

Currently if you're not in release mode it goes to debug level.

But there are even cases in dev mode where you don't want verbose

jkomoros commented 7 years ago

Also, it really should be that each manager just gets a reference to the single logger that server has, so when server emits other debug messages like socket registering they use logrus too

That implies that manager.Logger is a public field, and server creatse a new logger and stuffs it in at start

jkomoros commented 7 years ago

Just use logrus.StandardLogger(), and pass that to gin as well

jkomoros commented 7 years ago