aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_sync_dir.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-28 22:06:17 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-28 22:06:17 -0800
commitad16221a35930094eb5f12ceb5b909fcae999f00 (patch)
tree8c55e1ad72a31048053a9a33e6364db6e33e7798 /weed/command/filer_remote_sync_dir.go
parentcf1586a34d4a7e17449cbd4494683a078aa093d5 (diff)
downloadseaweedfs-ad16221a35930094eb5f12ceb5b909fcae999f00.tar.xz
seaweedfs-ad16221a35930094eb5f12ceb5b909fcae999f00.zip
adjust error log
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
}