Including tracing setup in all examples (#79)

This commit is contained in:
David Pedersen
2021-08-01 22:01:33 +02:00
committed by GitHub
parent 6d787665d6
commit 666d088b26
10 changed files with 21 additions and 0 deletions
+3
View File
@@ -33,6 +33,9 @@ use std::net::SocketAddr;
#[tokio::main]
async fn main() {
// initialize tracing
tracing_subscriber::fmt::init();
// build our application with a route
let app =
// `GET /` goes to `root`