diff --git a/subcommands/targets/offline-update.go b/subcommands/targets/offline-update.go index 40584133..cfc66f1b 100644 --- a/subcommands/targets/offline-update.go +++ b/subcommands/targets/offline-update.go @@ -8,6 +8,7 @@ import ( "fmt" "github.com/foundriesio/fioctl/client" "github.com/foundriesio/fioctl/subcommands" + "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" "io" @@ -89,7 +90,7 @@ func doOfflineUpdate(cmd *cobra.Command, args []string) { fmt.Printf("Downloading Apps fetched by the `assemble-system-image` run; build number: %d, tag: %s...\n", ti.version, ti.buildTag) err = downloadApps(factory, targetName, ti.version, ti.buildTag, path.Join(dstDir, "apps")) if herr := client.AsHttpError(err); herr != nil && herr.Response.StatusCode == 404 { - fmt.Println("WARNING: The Target Apps were not fetched by the `assemble` run, make sure that App preloading is enabled if needed. The update won't include any Apps!") + logrus.Warning("WARNING: The Target Apps were not fetched by the `assemble` run, make sure that App preloading is enabled if needed. The update won't include any Apps!") } else { subcommands.DieNotNil(err, "Failed to download Target's Apps:") }