Skip to content

Commit

Permalink
print out req for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-spb committed Sep 6, 2024
1 parent 506db94 commit abb7aea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moroz/svc_preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"compress/zlib"
"context"
"encoding/json"
"log"
"net/http"
"time"

Expand Down Expand Up @@ -54,6 +55,7 @@ func decodePreflightRequest(ctx context.Context, r *http.Request) (interface{},
if err != nil {
return nil, err
}
log.Printf("DEBUG: req was %#v", r)
req := preflightRequest{MachineID: id}
if err := json.NewDecoder(zr).Decode(&req.payload); err != nil {
return nil, err
Expand Down

0 comments on commit abb7aea

Please sign in to comment.