Add PROPFIND debug

This commit is contained in:
Lennart
2024-06-20 20:44:55 +02:00
parent edb5cbd530
commit b7a0b1bef3
2 changed files with 3 additions and 0 deletions

View File

@@ -20,3 +20,4 @@ strum = "0.26"
itertools = "0.13" itertools = "0.13"
thiserror = "1.0" thiserror = "1.0"
roxmltree = "0.20" roxmltree = "0.20"
log = "0.4.21"

View File

@@ -7,6 +7,7 @@ use crate::Error;
use actix_web::http::header::ContentType; use actix_web::http::header::ContentType;
use actix_web::web::{Data, Path}; use actix_web::web::{Data, Path};
use actix_web::{HttpRequest, HttpResponse}; use actix_web::{HttpRequest, HttpResponse};
use log::debug;
use rustical_auth::{AuthInfoExtractor, CheckAuthentication}; use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
use serde::Deserialize; use serde::Deserialize;
use serde::Serialize; use serde::Serialize;
@@ -59,6 +60,7 @@ pub async fn route_propfind<A: CheckAuthentication, R: ResourceService + ?Sized>
auth: AuthInfoExtractor<A>, auth: AuthInfoExtractor<A>,
depth: Depth, depth: Depth,
) -> Result<HttpResponse, R::Error> { ) -> Result<HttpResponse, R::Error> {
debug!("{body}");
let auth_info = auth.inner; let auth_info = auth.inner;
let prefix = prefix.0.to_owned(); let prefix = prefix.0.to_owned();
let path_components = path.into_inner(); let path_components = path.into_inner();