Browse Source

bug fix: wrong status save when task failed

master
filesite 6 months ago
parent
commit
dfdee11016
  1. 2
      monitor.mjs

2
monitor.mjs

@ -133,7 +133,7 @@ class Monitor {
let logData = { let logData = {
"timestamp": common.getTimestamp(), "timestamp": common.getTimestamp(),
"url": task.url, "url": task.url,
"status": task.status "status": taskRes.task.status
}; };
common.saveLog(logFile, JSON.stringify(logData) + `\n`); common.saveLog(logFile, JSON.stringify(logData) + `\n`);
} }

Loading…
Cancel
Save