diff --git a/connection/aws.go b/connection/aws.go index 9017d283..03912230 100644 --- a/connection/aws.go +++ b/connection/aws.go @@ -108,11 +108,11 @@ func (t *AWSConnection) Client(ctx context.Context) (aws.Config, error) { if ctx.IsTrace() { httplogger := &httpretty.Logger{ Time: true, - TLS: true, + TLS: ctx.Logger.IsLevelEnabled(7), RequestHeader: true, - RequestBody: true, + RequestBody: ctx.Logger.IsLevelEnabled(8), ResponseHeader: true, - ResponseBody: true, + ResponseBody: ctx.Logger.IsLevelEnabled(9), Colors: true, Formatters: []httpretty.Formatter{&httpretty.JSONFormatter{}}, }