From c71fc8970fecb42ced28c31adda4a4375235484a Mon Sep 17 00:00:00 2001 From: Maria Malygina Date: Mon, 24 Jul 2023 18:11:23 +0300 Subject: [PATCH] log the request with body along with received response for put object Signed-off-by: m.malygina --- internal/s3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/s3/client.go b/internal/s3/client.go index 9632536..418a565 100644 --- a/internal/s3/client.go +++ b/internal/s3/client.go @@ -59,7 +59,7 @@ func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse { } // log the request with body along with received response - cfg.ClientLogMode = aws.LogRequestWithBody | aws.LogResponseWithBody + cfg.ClientLogMode = aws.LogResponseWithBody client := s3.NewFromConfig(cfg) rdr := bytes.NewReader(payload.Bytes()) sz := rdr.Size()