From 8f82dd078dc24db0ece9713c8eee4c7ac1d582ae Mon Sep 17 00:00:00 2001 From: pjht Date: Fri, 18 Oct 2024 19:57:18 -0500 Subject: [PATCH] Only log start of request --- server/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/server.rs b/server/src/server.rs index dd441f0..1a8437a 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -216,7 +216,7 @@ pub async fn run(listener: TcpListener, db_conn: SqliteConnection, static_dir: P }) .with_state(Arc::new(Mutex::new(ServState::new(db_conn)))) .layer(auth_layer) - .layer(ServiceBuilder::new().layer(TraceLayer::new_for_http())); + .layer(ServiceBuilder::new().layer(TraceLayer::new_for_http().on_response(()))); axum::serve(listener, app) .await