diff --git a/g/os/gfcache/gfcache_cache.go b/g/os/gfcache/gfcache_cache.go index 28cd50d99..c59fcc307 100644 --- a/g/os/gfcache/gfcache_cache.go +++ b/g/os/gfcache/gfcache_cache.go @@ -54,6 +54,7 @@ func (c *Cache) addMonitor(path string) { return } c.notify.Add(path, func(event *gfsnotify.Event) { + //glog.Debug("gfcache:", event) r := c.cache.Get(path).([]byte) // 是否删除 if event.IsRemove() { diff --git a/g/os/gfsnotify/gfsnotify.go b/g/os/gfsnotify/gfsnotify.go index 7f6fb89e0..9b27d2abf 100644 --- a/g/os/gfsnotify/gfsnotify.go +++ b/g/os/gfsnotify/gfsnotify.go @@ -162,6 +162,7 @@ func (w *Watcher) startWatchLoop() { // 监听事件 case ev := <- w.watcher.Events: + //glog.Debug("gfsnotify:", ev) w.events.Push(&Event{ Path : ev.Name, Op : Op(ev.Op),