From 46faa7a745724daeaea573ebe1a56144cad7d751 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 7 Jul 2017 23:48:53 +0200 Subject: [PATCH] refactor(ecs): Use Traefik Logger. --- provider/ecs/ecs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/provider/ecs/ecs.go b/provider/ecs/ecs.go index 48675fe37..e32477239 100644 --- a/provider/ecs/ecs.go +++ b/provider/ecs/ecs.go @@ -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{ ecs.New(sess, cfg), ec2.New(sess, cfg),