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