Skip to content

Commit

Permalink
Enable aws-sdk (s3) debug logging
Browse files Browse the repository at this point in the history
Bug: T344324
Change-Id: I91984e6b527b55b3aa0d1a6c73e75dfa33d5372a
  • Loading branch information
johngian committed Aug 18, 2023
1 parent 536d9e3 commit 9cc7a60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cache/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ func New(config dict.Dicter) (cache.Interface, error) {

awsConfig.S3ForcePathStyle = aws.Bool(s3ForcePathStyle)

// Enable debugging for s3 client
awsConfig.LogLevel = aws.LogLevel(aws.LogDebugWithHTTPBody)

// setup the s3 session.
// if the accessKey and secreteKey are not provided (static creds) then the provider chain is used
// http://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html
Expand Down

0 comments on commit 9cc7a60

Please sign in to comment.