From 92279fd68d58a88ac5c6904bb30ac039ae8a5cad Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 5 Feb 2025 11:12:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=81=BF=E5=85=8D=E7=A9=BA=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitors/monitorHelper.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monitors/monitorHelper.go b/monitors/monitorHelper.go index ff78aec..aaf9a20 100644 --- a/monitors/monitorHelper.go +++ b/monitors/monitorHelper.go @@ -12,7 +12,9 @@ type MonitorHelper struct { func (the *MonitorHelper) initial() { the.Cron = cron.New() - log.Printf("cronStr=%s", the.CronStr) + if the.CronStr != "" { + log.Printf("cronStr=%s", the.CronStr) + } } // RegisterTask 注册定时器方法