aboutsummaryrefslogtreecommitdiff
path: root/aero-proto/src/dav/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'aero-proto/src/dav/mod.rs')
-rw-r--r--aero-proto/src/dav/mod.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/aero-proto/src/dav/mod.rs b/aero-proto/src/dav/mod.rs
index 43de3a5..a3dd58d 100644
--- a/aero-proto/src/dav/mod.rs
+++ b/aero-proto/src/dav/mod.rs
@@ -98,7 +98,7 @@ impl Server {
let conn = tokio::spawn(async move {
//@FIXME should create a generic "public web" server on which "routers" could be
//abitrarily bound
- //@FIXME replace with a handler supporting http2 and TLS
+ //@FIXME replace with a handler supporting http2
match http::Builder::new()
.serve_connection(
@@ -106,8 +106,9 @@ impl Server {
service_fn(|req: Request<hyper::body::Incoming>| {
let login = login.clone();
tracing::info!("{:?} {:?}", req.method(), req.uri());
+ tracing::debug!(req=?req, "full request");
async {
- match middleware::auth(login, req, |user, request| {
+ let response = match middleware::auth(login, req, |user, request| {
async { Controller::route(user, request).await }.boxed()
})
.await
@@ -119,7 +120,9 @@ impl Server {
.status(500)
.body(codec::text_body("Internal error"))
}
- }
+ };
+ tracing::debug!(resp=?response, "full response");
+ response
}
}),
)