|
@@ -93,8 +93,8 @@ function init() {
|
|
|
|
|
|
file.getLastFile(logPath, 500, async (fileNameList, _) => {
|
|
file.getLastFile(logPath, 500, async (fileNameList, _) => {
|
|
// logger.info('cccccccccccccc文件:', fileNameList);
|
|
// logger.info('cccccccccccccc文件:', fileNameList);
|
|
- // result = await file.readLastNLines(logPath, fileNameList, n);
|
|
|
|
- result = await file.getRecentLogs(logPath,fileNameList.reverse(),n);
|
|
|
|
|
|
+ result = await file.readLastNLines(logPath, fileNameList, n);
|
|
|
|
+ // result = await file.getRecentLogs(logPath,fileNameList.reverse(),n);
|
|
|
|
|
|
// logger.info('?????:', result);
|
|
// logger.info('?????:', result);
|
|
res.send({'code': 200, 'data': result, "message": "SUCCESS"});
|
|
res.send({'code': 200, 'data': result, "message": "SUCCESS"});
|