No need for this debug check

This commit is contained in:
Dane Everitt 2020-04-11 17:48:57 -07:00
parent 89e5b63c32
commit 13fc464508
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -5,7 +5,6 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"go.uber.org/zap" "go.uber.org/zap"
"net/http" "net/http"
@ -69,7 +68,7 @@ func (e *RequestError) AbortWithStatus(status int, c *gin.Context) {
} }
c.Error(errors.WithStack(e)) c.Error(errors.WithStack(e))
} else if config.Get().Debug { } else {
if e.server != nil { if e.server != nil {
zap.S().Debugw("encountered error while handling HTTP request", zap.String("server", e.server.Uuid), zap.String("error_id", e.Uuid), zap.Error(e.Err)) zap.S().Debugw("encountered error while handling HTTP request", zap.String("server", e.server.Uuid), zap.String("error_id", e.Uuid), zap.Error(e.Err))
} else { } else {