diff --git a/backend/src/auth.rs b/backend/src/auth.rs index d5c2bde..7649dce 100644 --- a/backend/src/auth.rs +++ b/backend/src/auth.rs @@ -39,19 +39,13 @@ impl AuthService { request.username.clone(), request.password.clone(), ); - println!("📝 Created CalDAV config"); // Test authentication against CalDAV server let caldav_client = CalDAVClient::new(caldav_config.clone()); - println!("🔗 Created CalDAV client, attempting to discover calendars..."); // Try to discover calendars as an authentication test match caldav_client.discover_calendars().await { - Ok(calendars) => { - println!( - "✅ Authentication successful! Found {} calendars", - calendars.len() - ); + Ok(_calendars) => { // Find or create user in database let user_repo = UserRepository::new(&self.db); diff --git a/backend/src/calendar.rs b/backend/src/calendar.rs index fae14ce..c0c6a47 100644 --- a/backend/src/calendar.rs +++ b/backend/src/calendar.rs @@ -665,7 +665,6 @@ impl CalDAVClient { } let body = response.text().await.map_err(CalDAVError::RequestError)?; - println!("Discovery response for {}: {}", path, body); let mut calendar_paths = Vec::new(); @@ -676,7 +675,6 @@ impl CalDAVClient { // Extract href first if let Some(href) = self.extract_xml_content(response_content, "href") { - println!("🔍 Checking resource: {}", href); // Check if this is a calendar collection by looking for supported-calendar-component-set // This indicates it's an actual calendar that can contain events @@ -700,14 +698,10 @@ impl CalDAVClient { && !href.ends_with("/calendars/") && href.ends_with('/') { - println!("📅 Found calendar collection: {}", href); calendar_paths.push(href); } else { - println!("❌ Skipping system/root directory: {}", href); } } else { - println!("â„šī¸ Not a calendar collection: {} (is_calendar: {}, has_collection: {})", - href, is_calendar, has_collection); } } } diff --git a/backend/src/handlers/auth.rs b/backend/src/handlers/auth.rs index 89ab1af..9789225 100644 --- a/backend/src/handlers/auth.rs +++ b/backend/src/handlers/auth.rs @@ -82,10 +82,6 @@ pub async fn get_user_info( .await .map_err(|e| ApiError::Internal(format!("Failed to discover calendars: {}", e)))?; - println!( - "✅ Authentication successful! Found {} calendars", - calendar_paths.len() - ); let calendars: Vec = calendar_paths .iter() diff --git a/backend/src/handlers/events.rs b/backend/src/handlers/events.rs index 6aefe80..a12ed2d 100644 --- a/backend/src/handlers/events.rs +++ b/backend/src/handlers/events.rs @@ -35,7 +35,6 @@ pub async fn get_calendar_events( // Extract and verify token let token = extract_bearer_token(&headers)?; let password = extract_password_header(&headers)?; - println!("🔑 API call with password length: {}", password.len()); // Create CalDAV config from token and password let config = state @@ -127,7 +126,6 @@ pub async fn get_calendar_events( }); } - println!("📅 Returning {} events", all_events.len()); Ok(Json(all_events)) }