瀏覽代碼

Added a diagnostic log for region mismtach

should help to diagnose #1084 #1056

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 年之前
父節點
當前提交
b560f0cbe9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ecs/up.go

+ 3 - 1
ecs/up.go

@@ -23,6 +23,8 @@ import (
 	"os/signal"
 	"syscall"
 
+	"github.com/sirupsen/logrus"
+
 	"github.com/docker/compose-cli/api/compose"
 	"github.com/docker/compose-cli/errdefs"
 
@@ -50,7 +52,7 @@ func (b *ecsAPIService) Start(ctx context.Context, project *types.Project, consu
 }
 
 func (b *ecsAPIService) Up(ctx context.Context, project *types.Project, options compose.UpOptions) error {
-
+	logrus.Debugf("deploying on AWS with region=%q", b.Region)
 	err := b.aws.CheckRequirements(ctx, b.Region)
 	if err != nil {
 		return err