Skip to content

Commit

Permalink
refac: use info! instead of println!
Browse files Browse the repository at this point in the history
  • Loading branch information
lffg committed Apr 12, 2024
1 parent c76de15 commit 63216e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ctl/src/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use axum::{routing::post, Router};
use tracing::info;

pub mod worker;

pub async fn run_server() {
let app = Router::new().route("/worker/metrics", post(worker::push_metrics));

let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
println!("HTTP listening at port 3000");
info!("HTTP listening at port 3000");
axum::serve(listener, app).await.unwrap();
}

0 comments on commit 63216e1

Please sign in to comment.