Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 7256a34

Browse files
authored
Patch for 1.1.2 and payload size logging (#1291)
1 parent 07a5eda commit 7256a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quesma/frontend_connectors/dispatcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func PeekBodyV2(r *http.Request) ([]byte, error) {
449449
logger.ErrorWithCtxAndReason(r.Context(), "incomplete request").
450450
Msgf("Error reading request body: %v, url=%v", err, r.URL)
451451
// To further examine erroneous body sent from the client
452-
logger.DebugWithCtx(r.Context()).Msgf("Failed peek body\nHeaders=[%v]\nBody read=[%s]", r.Header, reqBody)
452+
logger.DebugWithCtx(r.Context()).Msgf("Failed peek body | Bytes read=[%d] | Content length=[%d] | Headers=[%v]", len(reqBody), r.ContentLength, r.Header)
453453
return nil, err
454454
}
455455

0 commit comments

Comments
 (0)