mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
Ensure all stats/log messages to go stderr - fixes #30
This commit is contained in:
@@ -376,7 +376,7 @@ func main() {
|
|||||||
if command.Run != nil {
|
if command.Run != nil {
|
||||||
command.Run(fdst, fsrc)
|
command.Run(fdst, fsrc)
|
||||||
if !command.NoStats {
|
if !command.NoStats {
|
||||||
fmt.Println(fs.Stats)
|
fmt.Fprintln(os.Stderr, fs.Stats)
|
||||||
}
|
}
|
||||||
if fs.Config.Verbose {
|
if fs.Config.Verbose {
|
||||||
fs.Debug(nil, "Go routines at exit %d\n", runtime.NumGoroutine())
|
fs.Debug(nil, "Go routines at exit %d\n", runtime.NumGoroutine())
|
||||||
|
|||||||
Reference in New Issue
Block a user