소스 검색

日志格式化

flyzto 7 달 전
부모
커밋
aeab0a4b97
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/triangle/eventsMatch.js

+ 1 - 1
server/triangle/eventsMatch.js

@@ -171,7 +171,7 @@ const eventMatch = () => {
       });
       if (updateIds.add.length || updateIds.update.length) {
         const solutionsList = Object.values(solutionsHistory).sort((a, b) => b.sol.win_average - a.sol.win_average);
-        Logs.out('solutions history update', solutionsList, updateIds);
+        Logs.out('solutions history update', JSON.stringify(solutionsList, null, 2), JSON.stringify(updateIds, null, 2));
       }
     }
   })