aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-09-16 11:20:36 -0700
committerChris Lu <chris.lu@gmail.com>2018-09-16 11:20:36 -0700
commit70e67b7c6d918a0c3a437471868d52dc71fbeb4f (patch)
tree95208c462cac94e52497f10e29b6754a127e1bc9
parent5c6e3f457fb57472ccd6327902fcab0e288ecf86 (diff)
downloadseaweedfs-70e67b7c6d918a0c3a437471868d52dc71fbeb4f.tar.xz
seaweedfs-70e67b7c6d918a0c3a437471868d52dc71fbeb4f.zip
add notification log
-rw-r--r--weed/filer2/filer_notify.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.go
index e03a8d615..7fc64a1be 100644
--- a/weed/filer2/filer_notify.go
+++ b/weed/filer2/filer_notify.go
@@ -3,6 +3,7 @@ package filer2
import (
"github.com/chrislusf/seaweedfs/weed/notification"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
+ "github.com/chrislusf/seaweedfs/weed/glog"
)
func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
@@ -17,6 +18,8 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
if notification.Queue != nil {
+ glog.V(3).Infof("notifying entry update %v", key)
+
notification.Queue.SendMessage(
key,
&filer_pb.EventNotification{