fix: 脱敏认证请求日志

This commit is contained in:
zetaloop
2026-04-25 06:54:38 +08:00
parent af4c3b2176
commit b415751c87
2 changed files with 10 additions and 5 deletions
@@ -18,9 +18,7 @@ func GetMeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := user.NewGetMeLogic(r.Context(), svcCtx)
resp, err := l.GetMe()
logx.Infof("req header: %v", r.Header)
logx.Infof("cookies: %v", r.Cookies())
//r.Cookie()
logx.Infof("getMe requestId=%s userId=%s", r.Header.Get("x-request-id"), r.Header.Get("x-auth-user-id"))
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {