Kaynağa Gözat

获取日志存在bug ,正在排查~~~

hl 9 ay önce
ebeveyn
işleme
14947100ec
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/utils/file.js

+ 1 - 1
src/utils/file.js

@@ -104,7 +104,7 @@ function getLastFile(dirPath, number, callback) {
             // 按照倒叙获取,如果一个文件内容满足num,就不在继续查询,如果不够,继续获取文件
             for (var i = fileList.length - 1; i >= 0; i--) {
                 var file = fileList[i];
-                logger.info(`--------02..00`, dirPath, file)
+                logger.info(`--------02..00`, dirPath, file,i,fileList.length)
                 const filePath = path.join(dirPath, file);
                 const stats = await fs.promises.stat(filePath);
                 fileList.push({name: file, time: stats.mtimeMs});