fix: dont duplicate info output

This commit is contained in:
decentral1se 2021-10-21 15:13:24 +02:00
parent c5f44cf340
commit 2fcdaca75f
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -70,7 +70,7 @@ recipes.
} }
if len(versions) > 0 { if len(versions) > 0 {
version = versions[len(versions)-1] version = versions[len(versions)-1]
logrus.Infof("choosing '%s' as version to deploy", version) logrus.Debugf("choosing '%s' as version to deploy", version)
if err := recipe.EnsureVersion(app.Type, version); err != nil { if err := recipe.EnsureVersion(app.Type, version); err != nil {
logrus.Fatal(err) logrus.Fatal(err)
} }
@ -83,8 +83,8 @@ recipes.
} }
} }
if !internal.Chaos { if version == "" && !internal.Chaos {
logrus.Infof("choosing '%s' as version to deploy", version) logrus.Debugf("choosing '%s' as version to deploy", version)
if err := recipe.EnsureVersion(app.Type, version); err != nil { if err := recipe.EnsureVersion(app.Type, version); err != nil {
logrus.Fatal(err) logrus.Fatal(err)
} }