From 13fc464508e3155c95158142228f741fdb6b8bee Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 11 Apr 2020 17:48:57 -0700 Subject: [PATCH] No need for this debug check --- router/error.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/router/error.go b/router/error.go index aa985d2..9097b6e 100644 --- a/router/error.go +++ b/router/error.go @@ -5,7 +5,6 @@ import ( "github.com/gin-gonic/gin" "github.com/google/uuid" "github.com/pkg/errors" - "github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/server" "go.uber.org/zap" "net/http" @@ -69,7 +68,7 @@ func (e *RequestError) AbortWithStatus(status int, c *gin.Context) { } c.Error(errors.WithStack(e)) - } else if config.Get().Debug { + } else { 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)) } else {