From abb7aea434d67c5632ec798370bb284f8dd13421 Mon Sep 17 00:00:00 2001 From: Simon Baker Date: Fri, 6 Sep 2024 09:33:11 +0100 Subject: [PATCH] print out req for debugging --- moroz/svc_preflight.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moroz/svc_preflight.go b/moroz/svc_preflight.go index db72ee1..185327a 100644 --- a/moroz/svc_preflight.go +++ b/moroz/svc_preflight.go @@ -4,6 +4,7 @@ import ( "compress/zlib" "context" "encoding/json" + "log" "net/http" "time" @@ -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