Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkamalesh committed Apr 28, 2024
1 parent 4fc3360 commit 04a6488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/http/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand All @@ -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()))
}()

Expand Down

0 comments on commit 04a6488

Please sign in to comment.