Remove unnecessary frontend console logs
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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! {
|
||||
<BrowserRouter>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user