diff options
Diffstat (limited to 'src/jobs/mod.rs')
-rw-r--r-- | src/jobs/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jobs/mod.rs b/src/jobs/mod.rs index 5f95597..17df58c 100644 --- a/src/jobs/mod.rs +++ b/src/jobs/mod.rs @@ -11,14 +11,14 @@ use crate::model::job::Job; pub async fn start(config: Config, pool: SqlitePool, templates: Tera) { loop { if db::jobs::should_run(&pool, Job::WeeklyReport).await { - info!("Starting weekly report job"); + log::info!("Starting weekly report job"); if weekly_report::send(&config, &pool, &templates).await { db::jobs::actualize_last_execution(&pool, Job::WeeklyReport) .await; } } if db::jobs::should_run(&pool, Job::MonthlyPayment).await { - info!("Starting monthly payment job"); + log::info!("Starting monthly payment job"); db::payments::create_monthly_payments(&pool).await; db::jobs::actualize_last_execution(&pool, Job::MonthlyPayment) .await; |