fix(args): change arg prodmode name

This commit is contained in:
hexxa 2020-12-05 10:35:07 +08:00
parent 83100007e3
commit 31a1a331f7
4 changed files with 6 additions and 4 deletions

View file

@ -9,6 +9,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/ihexxa/gocfg"
"github.com/ihexxa/quickshare/src/cryptoutil/jwt"
"github.com/ihexxa/quickshare/src/depidx"
"github.com/ihexxa/quickshare/src/fs"
@ -30,7 +31,7 @@ type Server struct {
func NewServer(cfg gocfg.ICfg) (*Server, error) {
deps := initDeps(cfg)
if cfg.BoolOr("Server.ProdMode", true) {
if cfg.BoolOr("Server.Debug", false) {
gin.SetMode(gin.ReleaseMode)
}