aws / aws-dax-go

AWS DAX SDK for the Go programming language. https://aws.amazon.com/dynamodb/dax
Apache License 2.0
47 stars 48 forks source link

Incorrect logging level in AWS DAX GO SDK #49

Open adriantam opened 11 months ago

adriantam commented 11 months ago

We wanted to track request retries and errors in our log by setting log level to aws.LogDebugWithRequestRetries and aws.LogDebugWithRequestErrors

aws.NewConfig().WithLogger(logger).WithLogLevel(aws.LogDebugWithRequestRetries | aws.LogDebugWithRequestErrors)

However, this will add noises in our log as it also log things like dax health check passing etc.

The SDK log should have the appropriate level so that logging error cases will not require logging normal operations.