From 04a6488f445ce29db1a7e7e67112932b4a48611e Mon Sep 17 00:00:00 2001 From: bnkamalesh Date: Sun, 28 Apr 2024 18:33:09 +0200 Subject: [PATCH] fixes --- cmd/server/http/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server/http/handlers.go b/cmd/server/http/handlers.go index 9f3debf..a6be799 100644 --- a/cmd/server/http/handlers.go +++ b/cmd/server/http/handlers.go @@ -107,7 +107,7 @@ func errWrapper(h func(w http.ResponseWriter, r *http.Request) error) http.Handl status, msg, _ := errors.HTTPStatusCodeMessage(err) webgo.SendError(w, msg, status) if status > 499 { - _ = logger.Error(r.Context(), errors.Stacktrace(err)) + logger.Error(r.Context(), errors.Stacktrace(err)) } } } @@ -120,7 +120,7 @@ func panicRecoverer(w http.ResponseWriter, r *http.Request, next http.HandlerFun } webgo.R500(w, errors.DefaultMessage) - _ = logger.Error(r.Context(), fmt.Sprintf("%+v", p)) + logger.Error(r.Context(), fmt.Sprintf("%+v", p)) fmt.Println(string(debug.Stack())) }()