|
@@ -112,6 +112,7 @@ function cacheLogs() {
|
|
const directoryPath = path.resolve(logPath);
|
|
const directoryPath = path.resolve(logPath);
|
|
file.checkPathSync(directoryPath)
|
|
file.checkPathSync(directoryPath)
|
|
file.getLastFile(logPath, 5, async (fileNameList, _) => {
|
|
file.getLastFile(logPath, 5, async (fileNameList, _) => {
|
|
|
|
+ logger.info('-----文件:', fileNameList);
|
|
let result = await file.getLatestLogEntries(logPath, fileNameList.reverse(), n);
|
|
let result = await file.getLatestLogEntries(logPath, fileNameList.reverse(), n);
|
|
if (messlist.length === 0) {
|
|
if (messlist.length === 0) {
|
|
value.messlist = result
|
|
value.messlist = result
|