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

This commit is contained in:
Nick Craig-Wood 2015-02-28 14:39:00 +00:00
parent a5974999eb
commit aa093e991e

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