From feb324913697da1c993dfc24c702788bdee1a3f2 Mon Sep 17 00:00:00 2001 From: filesite-io Date: Tue, 4 Jun 2024 22:15:03 +0800 Subject: [PATCH] improve logs --- monitor.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monitor.mjs b/monitor.mjs index 5193464..0746c00 100644 --- a/monitor.mjs +++ b/monitor.mjs @@ -70,7 +70,6 @@ class Monitor { const cronjob = cron.schedule(`*/${frequence} * * * *`, async () => { let configs = await _self.getConfig(); if (configs.monit_urls.length == 0) { - console.error("No monit urls in the config file."); return false; } @@ -104,7 +103,7 @@ class Monitor { task = _self.tasks[index]; if (task.status == 'done') {continue;} - console.log('Query task result of %s', task.id); + //console.log('Query task result of %s', task.id); taskRes = await common.queryHeroUnionTask(task.id, configs); if (taskRes && taskRes.code == 1) { _self.tasks[index] = taskRes.task; @@ -138,7 +137,6 @@ class Monitor { && this.config.resultQueryFrequence ? this.config.resultQueryFrequence : 5; //5 分钟检测一次 const cronjob = cron.schedule(`*/${frequence} * * * *`, async () => { if (_self.tasks.length == 0) { - console.error("No tasks to check result."); return false; }