aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_sync_dir.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/filer_remote_sync_dir.go')
-rw-r--r--weed/command/filer_remote_sync_dir.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go
index 07e91febc..30782942e 100644
--- a/weed/command/filer_remote_sync_dir.go
+++ b/weed/command/filer_remote_sync_dir.go
@@ -169,7 +169,9 @@ func retriedWriteFile(client remote_storage.RemoteStorageClient, filerSource *so
}
return nil
})
- glog.Errorf("write to %s: %v", dest, err)
+ if err != nil {
+ glog.Errorf("write to %s: %v", dest, err)
+ }
return
}