Skip to content

Commit

Permalink
Make logged messages of activity clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Nov 13, 2015
1 parent 6836032 commit 7361f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cli/smartling/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ func pullAllProjectFiles(prefix string) {
locales, err := client.Locales()
logAndQuitIfError(err)

// do this first to cache result and prevent races in the goroutines
_ = getRemoteFileList()

var wg sync.WaitGroup
for _, projectFilepath := range ProjectConfig.Files() {
for _, l := range locales {
Expand Down Expand Up @@ -260,7 +263,7 @@ func pushProjectFile(projectFilepath, prefix string) string {
})
logAndQuitIfError(err)

fmt.Println("Pushed", remoteFile)
fmt.Println("Uploaded", remoteFile)
return remoteFile
}

Expand Down
2 changes: 1 addition & 1 deletion cli/smartling/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func translateViaSmartling(projectFilepath, prefix, locale string) (b []byte, er
Locale: locale,
})

fmt.Println("Pulled", remotePath)
fmt.Println("Downloaded", remotePath)

return
}

0 comments on commit 7361f1a

Please sign in to comment.