From f0e9f59a908c7355b1e624a5917d60e516df3695 Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Tue, 25 Jul 2023 16:07:01 +0300 Subject: [PATCH] add ClientlLogMode Signed-off-by: m.malygina --- internal/s3/client.go | 8 -------- internal/s3/s3.go | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/internal/s3/client.go b/internal/s3/client.go index 01a5ec0..53caed0 100644 --- a/internal/s3/client.go +++ b/internal/s3/client.go @@ -51,14 +51,6 @@ type ( ) func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse { - //cfg, err := config.LoadDefaultConfig(c.vu.Context()) - //if err != nil { - // log.Fatal(err) - //} - - // log the request with body along with received response - //cfg.ClientLogMode = aws.LogResponseWithBody - //client := s3.NewFromConfig(cfg) rdr := bytes.NewReader(payload.Bytes()) sz := rdr.Size() diff --git a/internal/s3/s3.go b/internal/s3/s3.go index 965bd50..3ebdd31 100644 --- a/internal/s3/s3.go +++ b/internal/s3/s3.go @@ -91,6 +91,7 @@ func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error) }, Timeout: timeout, } + options.ClientLogMode = aws.LogResponse }) // register metrics