mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
Add debug logging to PROPPATCH
This commit is contained in:
@@ -10,6 +10,7 @@ use crate::Error;
|
|||||||
use actix_web::http::header::ContentType;
|
use actix_web::http::header::ContentType;
|
||||||
use actix_web::http::StatusCode;
|
use actix_web::http::StatusCode;
|
||||||
use actix_web::{web::Path, HttpRequest, HttpResponse};
|
use actix_web::{web::Path, HttpRequest, HttpResponse};
|
||||||
|
use log::debug;
|
||||||
use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
|
use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
|
||||||
use serde::{Deserialize, Serialize};
|
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 href = req.path().to_owned();
|
||||||
let resource_service = R::new(req, auth_info.clone(), path_components.clone()).await?;
|
let resource_service = R::new(req, auth_info.clone(), path_components.clone()).await?;
|
||||||
|
|
||||||
|
debug!("{body}");
|
||||||
|
|
||||||
// TODO: Implement remove!
|
// TODO: Implement remove!
|
||||||
let PropertyupdateElement::<<R::File as Resource>::Prop> {
|
let PropertyupdateElement::<<R::File as Resource>::Prop> {
|
||||||
set: set_els,
|
set: set_els,
|
||||||
@@ -158,6 +161,7 @@ pub async fn route_proppatch<A: CheckAuthentication, R: ResourceService + ?Sized
|
|||||||
}
|
}
|
||||||
.serialize(ser)
|
.serialize(ser)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
debug!("{output}");
|
||||||
|
|
||||||
Ok(HttpResponse::MultiStatus()
|
Ok(HttpResponse::MultiStatus()
|
||||||
.content_type(ContentType::xml())
|
.content_type(ContentType::xml())
|
||||||
|
|||||||
Reference in New Issue
Block a user