Make cors messages respect the debug flag (#25)
This commit is contained in:
parent
b0cd264c71
commit
ba695134ce
6
main.go
6
main.go
@ -61,8 +61,10 @@ func startHTTPAPI() {
|
||||
OptionsPassthrough: false,
|
||||
Debug: Config.General.Debug,
|
||||
})
|
||||
// Logwriter for saner log output
|
||||
c.Log = stdlog.New(logwriter, "", 0)
|
||||
if Config.General.Debug {
|
||||
// Logwriter for saner log output
|
||||
c.Log = stdlog.New(logwriter, "", 0)
|
||||
}
|
||||
api.POST("/register", webRegisterPost)
|
||||
api.POST("/update", Auth(webUpdatePost))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user