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

Signed-off-by: m.malygina <m.malygina@yadro.com>
feature/support-client-log-mode
Maria Malygina 2023-07-24 18:11:23 +03:00 committed by m.malygina
parent 82a02cc8d2
commit c71fc8970f
1 changed files with 1 additions and 1 deletions

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