From 462f3c10f739eb6a62af5d30944af6f8c8b7c988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Wed, 16 Oct 2024 19:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/src/task.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/src/task.rs b/library/src/task.rs index 24a1bc5..ca3a7a9 100644 --- a/library/src/task.rs +++ b/library/src/task.rs @@ -30,14 +30,12 @@ async fn schedule(tasks: Vec) -> Result<(), JobSchedulerError> { if task.cron.is_some() { let schedule = task.cron.as_ref().unwrap().as_str(); if let Some(time_zone) = task.time_zone.as_ref() { - tracing::info!("添加定时任务: {} - {}", task.cron.as_ref().unwrap(), time_zone); let tz: Tz = time_zone.parse().unwrap(); let job_fun = task.job.clone(); let _task_uuid = scheduler.add(Job::new_cron_job_async_tz(schedule, tz, move |_uuid, _l| { job_fun() })?).await?; } else { - tracing::info!("添加定时任务: {}", task.cron.as_ref().unwrap()); let job_fun = task.job.clone(); let _task_uuid = scheduler.add(Job::new_cron_job_async(schedule, move |_uuid, _l| { job_fun() @@ -45,7 +43,6 @@ async fn schedule(tasks: Vec) -> Result<(), JobSchedulerError> { } } else if task.interval.is_some() { let schedule = task.interval.unwrap(); - tracing::info!("添加定时任务: {}", task.interval.as_ref().unwrap()); let job_fun = task.job.clone(); let _task_uuid = scheduler.add(Job::new_repeated_async(Duration::from_secs(schedule), move |_uuid, _l| { job_fun()