diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-11-27 22:09:23 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-11-27 22:09:23 -0800 |
| commit | cf1586a34d4a7e17449cbd4494683a078aa093d5 (patch) | |
| tree | 44c995638e4c1337dc4c06bfddabc4ed8a72f1e5 /weed/command/filer_remote_sync_dir.go | |
| parent | 3a19eea97c0456578eaef0bf31b136e5a7c3cb5e (diff) | |
| download | seaweedfs-cf1586a34d4a7e17449cbd4494683a078aa093d5.tar.xz seaweedfs-cf1586a34d4a7e17449cbd4494683a078aa093d5.zip | |
add logs for writing to remote file
Diffstat (limited to 'weed/command/filer_remote_sync_dir.go')
| -rw-r--r-- | weed/command/filer_remote_sync_dir.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go index e24c8f9e6..07e91febc 100644 --- a/weed/command/filer_remote_sync_dir.go +++ b/weed/command/filer_remote_sync_dir.go @@ -3,6 +3,10 @@ package command import ( "context" "fmt" + "os" + "strings" + "time" + "github.com/chrislusf/seaweedfs/weed/filer" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb" @@ -13,9 +17,6 @@ import ( "github.com/chrislusf/seaweedfs/weed/util" "github.com/golang/protobuf/proto" "google.golang.org/grpc" - "os" - "strings" - "time" ) func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *source.FilerSource, mountedDir string) error { @@ -168,6 +169,7 @@ func retriedWriteFile(client remote_storage.RemoteStorageClient, filerSource *so } return nil }) + glog.Errorf("write to %s: %v", dest, err) return } |
