-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable SDKv2 s3 debug logs #207
base: main
Are you sure you want to change the base?
Conversation
aec0092
to
55e92a6
Compare
}), | ||
), | ||
config.WithLogger(awsLogger), | ||
config.WithClientLogMode(aws.LogRequest|aws.LogResponse|aws.LogRetries|aws.LogSigning), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please feedback on which logs to enable and/or if we need to make this configurable.
9e16cf8
to
d736b23
Compare
cfg, err := newConfigBuilder(o.log).WithTLSSettings(insecureSkipTLSVerify, caCert).Build() | ||
cfg, err := newConfigBuilder(o.log).WithTLSSettings(insecureSkipTLSVerify, caCert).WithClientLogMode().Build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is not needed, unless we want logs for region discovery too.
d87a2e9
to
f6f468e
Compare
b12f7f3
to
41b19b5
Compare
This might also help determine vmware-tanzu/velero#8152 as to which value was passed in header x-amz-content-sha256 |
Signed-off-by: Tiger Kaovilai <[email protected]> remove commented code. Signed-off-by: Tiger Kaovilai <[email protected]>
41b19b5
to
70632b5
Compare
For aws sdkv2, there are no logging by default. This PR enables debug logging from the SDK.
Helps with vmware-tanzu/velero#7543
Sets ClientLogMode https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/logging/#clientlogmode and add plugin logger to config/options
This should assists in debugging requests/responses, especially with the recent rise in issues
Signed-off-by: Tiger Kaovilai [email protected]
image:
ghcr.io/kaovilai/velero-plugin-for-aws:sdk-v2-logging
Dev Notes
image build command