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>
This commit is contained in:
parent
82a02cc8d2
commit
c71fc8970f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue