Add debug logging to PROPPATCH

This commit is contained in:
Lennart
2024-06-20 21:19:23 +02:00
parent bf39844abf
commit 0994c484d1

View File

@@ -10,6 +10,7 @@ use crate::Error;
use actix_web::http::header::ContentType;
use actix_web::http::StatusCode;
use actix_web::{web::Path, HttpRequest, HttpResponse};
use log::debug;
use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
use serde::{Deserialize, Serialize};
@@ -54,6 +55,8 @@ pub async fn route_proppatch<A: CheckAuthentication, R: ResourceService + ?Sized
let href = req.path().to_owned();
let resource_service = R::new(req, auth_info.clone(), path_components.clone()).await?;
debug!("{body}");
// TODO: Implement remove!
let PropertyupdateElement::<<R::File as Resource>::Prop> {
set: set_els,
@@ -158,6 +161,7 @@ pub async fn route_proppatch<A: CheckAuthentication, R: ResourceService + ?Sized
}
.serialize(ser)
.unwrap();
debug!("{output}");
Ok(HttpResponse::MultiStatus()
.content_type(ContentType::xml())