Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Ensure all stats/log messages to go stderr - fixes #30

Nick Craig-Woodaa093e991e82
diff --git a/rclone.go b/rclone.go
index 2cbf39792..77c66b213 100644
--- a/rclone.go
+++ b/rclone.go
@@ -376,7 +376,7 @@ func main() {
if command.Run != nil {
command.Run(fdst, fsrc)
if !command.NoStats {
- fmt.Println(fs.Stats)
+ fmt.Fprintln(os.Stderr, fs.Stats)
}
if fs.Config.Verbose {
fs.Debug(nil, "Go routines at exit %d\n", runtime.NumGoroutine())