Make cors messages respect the debug flag (#25)

This commit is contained in:
Joona Hoikkala
2017-11-15 21:35:35 +02:00
committed by GitHub
parent b0cd264c71
commit ba695134ce

View File

@ -61,8 +61,10 @@ func startHTTPAPI() {
OptionsPassthrough: false,
Debug: Config.General.Debug,
})
if Config.General.Debug {
// Logwriter for saner log output
c.Log = stdlog.New(logwriter, "", 0)
}
api.POST("/register", webRegisterPost)
api.POST("/update", Auth(webUpdatePost))