feat: cleanup log output for failure case

Also mark DOKKU_DISABLE_ANSI_PREFIX_REMOVAL as deprecated (it will be removed in 0.23.0 and no prefixes will be removed at that time).
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-28 03:32:11 -05:00
parent bd261e6847
commit bde77dbf78
4 changed files with 7 additions and 4 deletions

View File

@@ -138,6 +138,7 @@ func getDokkuAppShell(appName string) string {
}
func executeScript(appName string, imageTag string, phase string) error {
common.LogInfo1(fmt.Sprintf("Checking for %s task", phase))
image, err := common.GetDeployingAppImageName(appName, imageTag, "")
if err != nil {
common.LogFail(err.Error())
@@ -156,6 +157,7 @@ func executeScript(appName string, imageTag string, phase string) error {
}
if command == "" {
common.LogVerbose(fmt.Sprintf("No %s task found, skipping", phase))
return nil
}