mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Including tracing setup in all examples (#79)
This commit is contained in:
@@ -3,6 +3,8 @@ use std::net::SocketAddr;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
// build our application with a route
|
||||
let app = route("/", get(handler));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user