Quellcode durchsuchen

一台机器支持不同端口启动同样策略

hl vor 1 Jahr
Ursprung
Commit
b585bd6265
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/web.js

+ 2 - 1
src/web.js

@@ -32,6 +32,7 @@ function init() {
         const n = param.n
         const id = param.id
         var app = robot.getApp(id)
+        logger.info(`当前参数:${id}-${n}-${app.port}`);
 
         let result = [];
         if (app.port !== -1) {
@@ -39,7 +40,7 @@ function init() {
             logger.info(`日志相对地址:${logPath}`)
 
             file.getLastFile(logPath, 10, (fileNameList) => {
-                // logger.info('??:', fileNameList);
+                // logger.info('??1:', fileNameList);
                 result = file.readLastNLines(logPath, fileNameList, n);
                 // logger.info('?????:', result);
                 res.send({'code': 200, 'data': result, "message": "SUCCESS"});