forked from TrueCloudLab/xk6-frostfs
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
parent
82a02cc8d2
commit
c71fc8970f
|
@ -59,7 +59,7 @@ func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
// log the request with body along with received response
|
// log the request with body along with received response
|
||||||
cfg.ClientLogMode = aws.LogRequestWithBody | aws.LogResponseWithBody
|
cfg.ClientLogMode = aws.LogResponseWithBody
|
||||||
client := s3.NewFromConfig(cfg)
|
client := s3.NewFromConfig(cfg)
|
||||||
rdr := bytes.NewReader(payload.Bytes())
|
rdr := bytes.NewReader(payload.Bytes())
|
||||||
sz := rdr.Size()
|
sz := rdr.Size()
|
||||||
|
|
Loading…
Reference in New Issue