forked from TrueCloudLab/xk6-frostfs
add ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
parent
afebe294cd
commit
f0e9f59a90
2 changed files with 1 additions and 8 deletions
|
@ -51,14 +51,6 @@ type (
|
|||
)
|
||||
|
||||
func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse {
|
||||
//cfg, err := config.LoadDefaultConfig(c.vu.Context())
|
||||
//if err != nil {
|
||||
// log.Fatal(err)
|
||||
//}
|
||||
|
||||
// log the request with body along with received response
|
||||
//cfg.ClientLogMode = aws.LogResponseWithBody
|
||||
//client := s3.NewFromConfig(cfg)
|
||||
rdr := bytes.NewReader(payload.Bytes())
|
||||
sz := rdr.Size()
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error)
|
|||
},
|
||||
Timeout: timeout,
|
||||
}
|
||||
options.ClientLogMode = aws.LogResponse
|
||||
})
|
||||
|
||||
// register metrics
|
||||
|
|
Loading…
Add table
Reference in a new issue