mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
gfsnotify/gfcache调试信息
This commit is contained in:
@ -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() {
|
||||
|
||||
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user