longyu 2 лет назад
Родитель
Сommit
47d79bae82
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      watch/watch.go

+ 2 - 0
watch/watch.go

@@ -52,7 +52,9 @@ func WatchIndexFile(filePath string) {
 	fmt.Println("filePath:", filePath)
 	time.Sleep(3 * time.Second)
 	//读取文件内容
+	global.LOG.Info("WatchFile:" + filePath)
 	f, err := excelize.OpenFile(filePath)
+	global.LOG.Info("OpenFile:" + filePath)
 	if err != nil {
 		fmt.Println("OpenFile:" + filePath + ",Err:" + err.Error())
 		return