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

s3-about
Nick Craig-Wood 2015-02-28 14:39:00 +00:00
parent a5974999eb
commit aa093e991e
1 changed files with 1 additions and 1 deletions

View File

@ -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())