refactor(ecs): Use Traefik Logger.

This commit is contained in:
Fernandez Ludovic 2017-07-07 23:48:53 +02:00 committed by Ludovic Fernandez
parent 54e3f08833
commit 46faa7a745

View file

@ -85,6 +85,12 @@ func (p *Provider) createClient() (*awsClient, error) {
}), }),
} }
if p.Trace {
cfg.WithLogger(aws.LoggerFunc(func(args ...interface{}) {
log.Debug(args...)
}))
}
return &awsClient{ return &awsClient{
ecs.New(sess, cfg), ecs.New(sess, cfg),
ec2.New(sess, cfg), ec2.New(sess, cfg),