From b530dcaa691fc48cb1ac875cb3b0121d083d300a Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Thu, 18 Sep 2025 16:20:55 -0400 Subject: [PATCH] Remove unnecessary frontend console logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove app rendering auth_token debug logs - Remove auth token validation success message - Remove recurring event occurrence generation logs - Remove exception dates logging for VEvents Frontend now runs with minimal essential logging. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/src/app.rs | 5 ----- frontend/src/services/calendar_service.rs | 20 -------------------- 2 files changed, 25 deletions(-) diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 8e9fa0a..70f8e3d 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -71,7 +71,6 @@ pub fn App() -> Html { match auth_service.verify_token(&stored_token).await { Ok(true) => { // Token is valid, set it - web_sys::console::log_1(&"✅ Stored auth token is valid".into()); auth_token.set(Some(stored_token)); } _ => { @@ -1198,10 +1197,6 @@ pub fn App() -> Html { }) }; - // Debug logging - web_sys::console::log_1( - &format!("App rendering: auth_token = {:?}", auth_token.is_some()).into(), - ); html! { diff --git a/frontend/src/services/calendar_service.rs b/frontend/src/services/calendar_service.rs index 6265f89..6dfd6a5 100644 --- a/frontend/src/services/calendar_service.rs +++ b/frontend/src/services/calendar_service.rs @@ -334,29 +334,9 @@ impl CalendarService { let event = Self::convert_utc_to_local(event); if let Some(ref rrule) = event.rrule { - // Log if event has exception dates - if !event.exdate.is_empty() { - web_sys::console::log_1( - &format!( - "📅 VEvent '{}' has {} exception dates: {:?}", - event.summary.as_deref().unwrap_or("Untitled"), - event.exdate.len(), - event.exdate - ) - .into(), - ); - } // Generate occurrences for recurring events using VEvent let occurrences = Self::generate_occurrences(&event, rrule, start_range, end_range); - web_sys::console::log_1( - &format!( - "📅 Generated {} occurrences for VEvent '{}'", - occurrences.len(), - event.summary.as_deref().unwrap_or("Untitled") - ) - .into(), - ); expanded_events.extend(occurrences); } else { // Non-recurring event - add as-is