Skip to content

Commit

Permalink
chore(webserver): cleanup scheduler logging level (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Apr 26, 2024
1 parent e9d3814 commit a86f3b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/tabby-webserver/src/cron/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::{Context, Result};
use futures::Future;
use tokio::io::AsyncBufReadExt;
use tokio_cron_scheduler::{Job, JobScheduler};
use tracing::{error, info, warn};
use tracing::{debug, error, warn};

use crate::schema::{job::JobService, worker::WorkerService};

Expand All @@ -31,7 +31,7 @@ pub async fn scheduler_job(
}

if let Ok(Some(next_tick)) = scheduler.next_tick_for_job(uuid).await {
info!(
debug!(
"Next time for scheduler job is {:?}",
next_tick.with_timezone(&chrono::Local)
);
Expand All @@ -56,7 +56,7 @@ async fn run_scheduler_now(
worker: Arc<dyn WorkerService>,
local_port: u16,
) -> Result<()> {
info!("Running scheduler job...");
debug!("Running scheduler job...");
let exe = std::env::current_exe()?;
let job_id = job.start("scheduler".to_owned()).await?;

Expand Down

0 comments on commit a86f3b0

Please sign in to comment.