Always use release mode

This commit is contained in:
Dane Everitt 2020-06-13 10:45:52 -07:00
parent 7d4a8d7f7e
commit b03aa20c8d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -4,6 +4,7 @@ import (
"crypto/tls"
"fmt"
"github.com/apex/log"
"github.com/gin-gonic/gin"
"github.com/mitchellh/colorstring"
"github.com/pterodactyl/wings/loggers/cli"
"net/http"
@ -223,6 +224,8 @@ func rootCmdRun(*cobra.Command, []string) {
"port": c.Api.Port,
}).Info("configuring webserver...")
gin.SetMode("release")
r := router.Configure()
addr := fmt.Sprintf("%s:%d", c.Api.Host, c.Api.Port)