Remove remaining frontend console logs for production

- Remove HTML loading and WASM initialization logs
- Clean up service worker registration/activation logs
- Remove alarm system initialization messages
- Remove notification permission logging
- Keep essential error logging for troubleshooting
- Clean production console output

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-09-21 21:35:06 -04:00
parent 2fee7a15f9
commit faf5ce2cfd
4 changed files with 4 additions and 18 deletions

View File

@@ -208,7 +208,6 @@ pub fn App() -> Html {
use_effect_with((*auth_token).clone(), move |token| {
if token.is_some() && !*alarm_storage_initialized {
web_sys::console::log_1(&"🔔 Initializing alarm system...".into());
let alarm_storage = alarm_storage.clone();
let alarm_scheduler = alarm_scheduler.clone();
@@ -226,10 +225,7 @@ pub fn App() -> Html {
// Request notification permission
let scheduler = (*alarm_scheduler).clone();
match scheduler.request_notification_permission().await {
Ok(permission) => {
web_sys::console::log_1(
&format!("🔔 Notification permission: {:?}", permission).into()
);
Ok(_permission) => {
}
Err(e) => {
web_sys::console::warn_1(
@@ -261,7 +257,6 @@ pub fn App() -> Html {
alarm_check_interval.set(Some(interval));
web_sys::console::log_1(&"✅ Alarm system initialized successfully".into());
}
Err(e) => {
web_sys::console::error_1(
@@ -274,7 +269,6 @@ pub fn App() -> Html {
// Clean up alarm system on logout
alarm_check_interval.set(None); // This will drop and cancel the interval
alarm_storage_initialized.set(false);
web_sys::console::log_1(&"🔔 Alarm system cleaned up".into());
}
|| ()

View File

@@ -16,7 +16,6 @@ impl AlarmStorage {
/// Initialize the storage (no-op for localStorage)
pub async fn init(&mut self) -> Result<(), wasm_bindgen::JsValue> {
web_sys::console::log_1(&"AlarmStorage initialized with localStorage".into());
Ok(())
}