Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(webserver): cleanup scheduler logging level #1977

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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 @@
}

if let Ok(Some(next_tick)) = scheduler.next_tick_for_job(uuid).await {
info!(
debug!(

Check warning on line 34 in ee/tabby-webserver/src/cron/scheduler.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/cron/scheduler.rs#L34

Added line #L34 was not covered by tests
"Next time for scheduler job is {:?}",
next_tick.with_timezone(&chrono::Local)
);
Expand All @@ -56,7 +56,7 @@
worker: Arc<dyn WorkerService>,
local_port: u16,
) -> Result<()> {
info!("Running scheduler job...");
debug!("Running scheduler job...");

Check warning on line 59 in ee/tabby-webserver/src/cron/scheduler.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/cron/scheduler.rs#L59

Added line #L59 was not covered by tests
let exe = std::env::current_exe()?;
let job_id = job.start("scheduler".to_owned()).await?;

Expand Down
Loading