소스 검색

日志查询bug尝试修复

hl 1 년 전
부모
커밋
9426f19d14
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/web.js

+ 3 - 0
src/web.js

@@ -7,6 +7,7 @@ const {logger, fileLogger} = require("./utils/logger");
 const {spawn, exec, fork, execSync} = require("child_process");
 const path = require("path");
 const {ka} = require("date-fns/locale");
+const {getAppMap} = require("./robot");
 
 /*******
  * web
@@ -32,6 +33,8 @@ function init() {
         const n = param.n
         const id = param.id
         var app = robot.getApp(id)
+
+        logger.info(JSON.stringify(getAppMap()))
         logger.info(JSON.stringify(app))
         logger.info(`当前参数:${id}-${n}-??${app.port}`);