Only log start of request

This commit is contained in:
pjht 2024-10-18 19:57:18 -05:00
parent 3ca9211e5d
commit 8f82dd078d
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -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