diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-10-06 13:01:29 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-10-06 13:01:29 -0700 |
| commit | 04da4c8094db4fccece63d8c5d29aee00a47b0bc (patch) | |
| tree | 25080670f07f0f435da3afff6d796af62b8d9332 | |
| parent | 4a8ef198d7ede307f204c1fb6f172a9cb1a009ca (diff) | |
| download | seaweedfs-04da4c8094db4fccece63d8c5d29aee00a47b0bc.tar.xz seaweedfs-04da4c8094db4fccece63d8c5d29aee00a47b0bc.zip | |
add logging
| -rw-r--r-- | weed/replication/replicator.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.go index 16103577f..ba9898915 100644 --- a/weed/replication/replicator.go +++ b/weed/replication/replicator.go @@ -31,6 +31,7 @@ func NewReplicator(sourceConfig util.Configuration, dataSink sink.ReplicationSin func (r *Replicator) Replicate(key string, message *filer_pb.EventNotification) error { if !strings.HasPrefix(key, r.source.Dir) { + glog.V(4).Infof("skipping %v outside of %v", key, r.source.Dir) return nil } key = filepath.Join(r.sink.GetSinkToDirectory(), key[len(r.source.Dir):]) |
