feat(assist-api): body req debug logs
This commit is contained in:
parent
4cc30cdcea
commit
f25575a0a8
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue