Skip to content

Commit

Permalink
enh(sqlite worker): don't log on healthcheck (#2867)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Dec 13, 2023
1 parent 1c83ed8 commit e754f91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/bin/sqlite_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,7 @@ fn main() {

let state = Arc::new(WorkerState::new(databases_store));

let app = Router::new()
.route("/", get(index))
let router = Router::new()
.route("/databases/:database_id", post(db_query))
.route(
"/databases/:database_id/tables/:table_id/rows",
Expand All @@ -336,6 +335,10 @@ fn main() {
)
.layer(extract::Extension(state.clone()));

let health_check_router = Router::new().route("/", get(index));

let app = Router::new().merge(router).merge(health_check_router);

// Start the heartbeat loop.
let state_clone = state.clone();
tokio::task::spawn(async move {
Expand Down

0 comments on commit e754f91

Please sign in to comment.