Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Nov 18, 2023
1 parent 586997a commit c5e0c2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/hub/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func (s *server) handleRequest(w http.ResponseWriter, r *http.Request) {
var body data.HTTPBody

if s.commonConfig.Networking.LargeDataPolicy == "split" && r.ContentLength > int64(s.commonConfig.Split.ChunkBytes) {
s.logger.Debug("Splitting request body...")
var chunks [][]byte
for i := 0; i < len(bodyBytes); i += s.commonConfig.Split.ChunkBytes {
end := i + s.commonConfig.Split.ChunkBytes
Expand Down Expand Up @@ -523,6 +524,7 @@ func (s *server) startHTTP1(c HubConfig) {
return
}
if httpResponseData.Body.Type == "split" {
s.logger.Debug("Received split message")
s.mergeCh <- mergeChPayload{
responsePacket: httpResponsePacket,
httpResponseData: httpResponseData,
Expand Down

0 comments on commit c5e0c2e

Please sign in to comment.