From f25575a0a80885e6bc0de3bcc0981b1bdc47ccd5 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 15 Apr 2025 13:31:46 +0200 Subject: [PATCH] feat(assist-api): body req debug logs --- ee/backend/pkg/assist/api/handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ee/backend/pkg/assist/api/handlers.go b/ee/backend/pkg/assist/api/handlers.go index e82a725dc..7c2cd2127 100644 --- a/ee/backend/pkg/assist/api/handlers.go +++ b/ee/backend/pkg/assist/api/handlers.go @@ -124,6 +124,7 @@ func (e *handlersImpl) socketsListByProject(w http.ResponseWriter, r *http.Reque e.responser.ResponseWithError(e.log, r.Context(), w, http.StatusRequestEntityTooLarge, err, startTime, r.URL.Path, bodySize) return } + e.log.Debug(context.Background(), "bodyBytes: %s", bodyBytes) bodySize = len(bodyBytes) req := &service.Request{} if err := json.Unmarshal(bodyBytes, req); err != nil { @@ -154,6 +155,7 @@ func (e *handlersImpl) socketsLiveByProject(w http.ResponseWriter, r *http.Reque e.responser.ResponseWithError(e.log, r.Context(), w, http.StatusRequestEntityTooLarge, err, startTime, r.URL.Path, bodySize) return } + e.log.Debug(context.Background(), "bodyBytes: %s", bodyBytes) bodySize = len(bodyBytes) req := &service.Request{} if err := json.Unmarshal(bodyBytes, req); err != nil { @@ -189,6 +191,7 @@ func (e *handlersImpl) socketsLiveBySession(w http.ResponseWriter, r *http.Reque e.responser.ResponseWithError(e.log, r.Context(), w, http.StatusRequestEntityTooLarge, err, startTime, r.URL.Path, bodySize) return } + e.log.Debug(context.Background(), "bodyBytes: %s", bodyBytes) bodySize = len(bodyBytes) req := &service.Request{} if err := json.Unmarshal(bodyBytes, req); err != nil {