log the request with body along with received response for put object

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
Maria Malygina 2023-07-24 18:11:23 +03:00 committed by m.malygina
parent 82a02cc8d2
commit c71fc8970f

View file

@ -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()