Only log start of request
This commit is contained in:
parent
3ca9211e5d
commit
8f82dd078d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user