Browse Source

add logs for writing to remote file

pull/2498/head
Chris Lu 3 years ago
parent
commit
cf1586a34d
  1. 8
      weed/command/filer_remote_sync_dir.go

8
weed/command/filer_remote_sync_dir.go

@ -3,6 +3,10 @@ package command
import ( import (
"context" "context"
"fmt" "fmt"
"os"
"strings"
"time"
"github.com/chrislusf/seaweedfs/weed/filer" "github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb" "github.com/chrislusf/seaweedfs/weed/pb"
@ -13,9 +17,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/util" "github.com/chrislusf/seaweedfs/weed/util"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"google.golang.org/grpc" "google.golang.org/grpc"
"os"
"strings"
"time"
) )
func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *source.FilerSource, mountedDir string) error { func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *source.FilerSource, mountedDir string) error {
@ -168,6 +169,7 @@ func retriedWriteFile(client remote_storage.RemoteStorageClient, filerSource *so
} }
return nil return nil
}) })
glog.Errorf("write to %s: %v", dest, err)
return return
} }

Loading…
Cancel
Save