Explorar o código

日志格式化

flyzto hai 7 meses
pai
achega
aeab0a4b97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
       }
     }
   })