mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-22 05:38:33 +07:00
Make cors messages respect the debug flag (#25)
This commit is contained in:
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))
|
||||
|
||||
|
Reference in New Issue
Block a user