diff --git a/main.go b/main.go index 6ba677b..c521d56 100644 --- a/main.go +++ b/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))