From 1365349358db02fe6f8148d780b613faa95948e4 Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 5 Jun 2024 07:51:06 +0800 Subject: [PATCH] change json log format --- monitor.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.mjs b/monitor.mjs index 99d3543..1069f19 100644 --- a/monitor.mjs +++ b/monitor.mjs @@ -117,7 +117,7 @@ class Monitor { //写入JSON格式的log logFile = path.resolve(_self.systemLogDir) + '/json_stats.log'; let logData = { - "time": currentTime, + "timestamp": common.getTimestamp(), "url": task.url, "status": taskRes.task.status }; @@ -131,7 +131,7 @@ class Monitor { //写入JSON格式的log logFile = path.resolve(_self.systemLogDir) + '/json_stats.log'; let logData = { - "time": currentTime, + "timestamp": common.getTimestamp(), "url": task.url, "status": task.status };