From f7a88796b5f05b68864212b664a09525016b5cfa Mon Sep 17 00:00:00 2001 From: akvlad Date: Wed, 11 Dec 2024 19:43:48 +0200 Subject: [PATCH] drop logging --- receiver/pyroscopereceiver/receiver.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/receiver/pyroscopereceiver/receiver.go b/receiver/pyroscopereceiver/receiver.go index 301f4fb..5dca8fa 100644 --- a/receiver/pyroscopereceiver/receiver.go +++ b/receiver/pyroscopereceiver/receiver.go @@ -4,7 +4,6 @@ import ( "bytes" "compress/gzip" "context" - "encoding/hex" "errors" "fmt" "io" @@ -341,13 +340,6 @@ func (r *pyroscopeReceiver) getProfilesBuff(req *http.Request) (*bytes.Buffer, e var f multipart.File f, err = r.openMultipart(req) if err != nil { - fmt.Println(req.URL.String()) - for k, v := range req.Header { - fmt.Printf("Header: %s: %v", k, v) - } - b, _ := io.ReadAll(req.Body) - //TODO: encode b to hex - fmt.Printf("Body: %s\n", hex.EncodeToString(b)) return nil, err } defer f.Close()