add ClientlLogMode

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2023-07-25 16:07:01 +03:00
parent afebe294cd
commit f0e9f59a90
2 changed files with 1 additions and 8 deletions

View file

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

View file

@ -91,6 +91,7 @@ func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error)
},
Timeout: timeout,
}
options.ClientLogMode = aws.LogResponse
})
// register metrics