Skip to content

Commit

Permalink
Issue argoproj#6: fix inconsistencies of when output goes to stdout v…
Browse files Browse the repository at this point in the history
…s. stderr
  • Loading branch information
jessesuen authored and wokeGit committed Nov 21, 2017
1 parent 8cae7e9 commit 29fb151
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions saas/argocli/src/applatix.io/argo/cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func clusterShell(cmd *cobra.Command, args []string) {
homePath := usr.HomeDir

clusterManagerImage := fmt.Sprintf("%s/%s/axclustermanager:%s", registry, namespace, version)
log.Printf("Getting the most up to date docker image (%s) for cluster management...\n", clusterManagerImage)
fmt.Printf("Getting the most up to date docker image (%s) for cluster management...\n", clusterManagerImage)
runCmdTTY(dockerPath, "pull", clusterManagerImage)

log.Println("Entering cluster management shell...")
fmt.Println("Entering cluster management shell...")
volAWS := fmt.Sprintf("%s/.aws:/root/.aws", homePath)
volKube := fmt.Sprintf("%s/.kube:/tmp/ax_kube", homePath)
volSSH := fmt.Sprintf("%s/.ssh:/root/.ssh", homePath)
Expand Down
2 changes: 1 addition & 1 deletion saas/argocli/src/applatix.io/argo/cmd/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func jobLogs(cmd *cobra.Command, args []string) {
if err != nil {
log.Fatalf("Failed to decode line '%s': %v", string(line), err)
}
log.Print(jl.Log)
fmt.Print(jl.Log)
}
default:

Expand Down
2 changes: 1 addition & 1 deletion saas/argocli/src/applatix.io/argo/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ var loginCmd = &cobra.Command{
if err != nil {
log.Fatalf("Failed to write config file: %v\n", err)
}
log.Printf("Config written to: %s\n", configPath)
fmt.Printf("Config written to: %s\n", configPath)
},
}

0 comments on commit 29fb151

Please sign in to comment.