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
+2
View File
@@ -4,6 +4,8 @@ use std::net::SocketAddr;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt::init();
// build our application with some routes
let app = route("/", get(show_form).post(accept_form));