Skip to content

Commit

Permalink
comment out logentrysetfield uses
Browse files Browse the repository at this point in the history
  • Loading branch information
karinamzalez committed Jan 29, 2024
1 parent e720a6d commit 4c5588a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ssas/service/public/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func ResetSecret(w http.ResponseWriter, r *http.Request) {
}

if err = json.Unmarshal(bodyStr, &req); err != nil {
service.LogEntrySetField(r, "bodyStr", bodyStr)
// service.LogEntrySetField(r, "bodyStr", bodyStr)
service.JSONError(w, http.StatusBadRequest, "invalid_client_metadata", "Request body cannot be parsed", nil)
return
}
Expand Down Expand Up @@ -160,7 +160,7 @@ func RegisterSystem(w http.ResponseWriter, r *http.Request) {

err = json.Unmarshal(bodyStr, &reg)
if err != nil {
service.LogEntrySetField(r, "bodyStr", bodyStr)
// service.LogEntrySetField(r, "bodyStr", bodyStr)
service.JSONError(w, http.StatusBadRequest, "invalid_client_metadata", "Request body cannot be parsed", logger)
return
}
Expand Down
4 changes: 2 additions & 2 deletions ssas/service/public/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func readGroupID(next http.Handler) http.Handler {
}

ctx := context.WithValue(r.Context(), "rd", rd)
service.LogEntrySetField(r, "rd", rd)
// service.LogEntrySetField(r, "rd", rd)
next.ServeHTTP(w, r.WithContext(ctx))
})
}
Expand Down Expand Up @@ -86,7 +86,7 @@ func parseToken(next http.Handler) http.Handler {
}
ctx := context.WithValue(r.Context(), "ts", tokenString)
ctx = context.WithValue(ctx, "rd", rd)
service.LogEntrySetField(r, "rd", rd)
// service.LogEntrySetField(r, "rd", rd)
next.ServeHTTP(w, r.WithContext(ctx))
})
}
Expand Down

0 comments on commit 4c5588a

Please sign in to comment.