mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 10:32:19 +00:00
report: add tracing and remove debug statements
This commit is contained in:
@@ -9,6 +9,7 @@ use rustical_store::{auth::User, CalendarStore};
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sync_collection::{handle_sync_collection, SyncCollectionRequest};
|
use sync_collection::{handle_sync_collection, SyncCollectionRequest};
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
use tracing::instrument;
|
||||||
|
|
||||||
mod calendar_multiget;
|
mod calendar_multiget;
|
||||||
mod calendar_query;
|
mod calendar_query;
|
||||||
@@ -30,6 +31,7 @@ pub enum ReportRequest {
|
|||||||
SyncCollection(SyncCollectionRequest),
|
SyncCollection(SyncCollectionRequest),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[instrument(skip(req, cal_store))]
|
||||||
pub async fn route_report_calendar<C: CalendarStore + ?Sized>(
|
pub async fn route_report_calendar<C: CalendarStore + ?Sized>(
|
||||||
path: Path<(String, String)>,
|
path: Path<(String, String)>,
|
||||||
body: String,
|
body: String,
|
||||||
@@ -42,8 +44,6 @@ pub async fn route_report_calendar<C: CalendarStore + ?Sized>(
|
|||||||
return Err(Error::Unauthorized);
|
return Err(Error::Unauthorized);
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg!("REPORT request:", &body);
|
|
||||||
dbg!(req.headers().get("If"));
|
|
||||||
let request: ReportRequest = quick_xml::de::from_str(&body)?;
|
let request: ReportRequest = quick_xml::de::from_str(&body)?;
|
||||||
|
|
||||||
Ok(match request.clone() {
|
Ok(match request.clone() {
|
||||||
|
|||||||
Reference in New Issue
Block a user