refactor(dynamodb): Use Traefik Logger.

This commit is contained in:
Fernandez Ludovic 2017-07-07 23:49:14 +02:00 committed by Ludovic Fernandez
parent 46faa7a745
commit a7ec785994

View file

@ -61,6 +61,12 @@ func (p *Provider) createClient() (*dynamoClient, error) {
}),
}
if p.Trace {
cfg.WithLogger(aws.LoggerFunc(func(args ...interface{}) {
log.Debug(args...)
}))
}
if p.Endpoint != "" {
cfg.Endpoint = aws.String(p.Endpoint)
}