Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 962230a

Browse files
authored
Merge pull request #599 from rumpl/verbose-stderr
Don't print logs when "-o -" flag is set
2 parents 8dcf633 + 5c2143d commit 962230a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/commands/bundle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func runBundle(dockerCli command.Cli, appName string, opts bundleOptions) error
6363
return err
6464
}
6565

66-
fmt.Fprintf(os.Stdout, "Invocation image %q successfully built\n", bundle.InvocationImages[0].Image)
6766
bundleBytes, err := json.MarshalIndent(bundle, "", "\t")
6867
if err != nil {
6968
return err
@@ -72,10 +71,11 @@ func runBundle(dockerCli command.Cli, appName string, opts bundleOptions) error
7271
_, err = dockerCli.Out().Write(bundleBytes)
7372
return err
7473
}
74+
fmt.Fprintf(os.Stdout, "Invocation image %q successfully built\n", bundle.InvocationImages[0].Image)
7575
if err := ioutil.WriteFile(opts.out, bundleBytes, 0644); err != nil {
7676
return err
7777
}
78-
fmt.Fprintf(os.Stdout, "Bundle saved in %s\n", opts.out)
78+
fmt.Fprintf(os.Stdout, "Bundle saved to %s\n", opts.out)
7979
return nil
8080
}
8181

0 commit comments

Comments
 (0)