YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
chore(telemetry): downgrade non-actionable errors to warn
Louis Beaumont6f50fc5c01bf
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rsindex c1d0b143a..a2f64a5f9 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs@@ -7,7 +7,7 @@ use std::path::Path;use std::sync::{Arc, Mutex, OnceLock};use tauri::AppHandle;use tauri_plugin_store::StoreBuilder;-use tracing::error;+use tracing::{error, warn};/// Process-lifetime cache for the resolved API auth key.///@@ -1077,7 +1077,11 @@ pub fn init_store(app: &AppHandle) -> Result<SettingsStore, String> {if should_save {if let Err(e) = store.save(app) {- error!("Failed to save initial settings store (non-fatal): {}", e);+ // Non-fatal — logged as warn (not error) so Sentry doesn't pick it up.+ // Common cause on Windows: antivirus / Controlled Folder Access / OneDrive+ // blocks the first write; we retry on subsequent saves so the user isn't+ // actually stuck. Not worth paging Louis about.+ warn!("Failed to save initial settings store (non-fatal): {}", e);}}Ok(store)@@ -1102,7 +1106,9 @@ pub fn init_onboarding_store(app: &AppHandle) -> Result<OnboardingStore, String>if should_save {if let Err(e) = onboarding.save(app) {- error!("Failed to save initial onboarding store (non-fatal): {}", e);+ // Non-fatal — logged as warn (not error) so Sentry doesn't pick it up.+ // See matching comment in init_settings_store.+ warn!("Failed to save initial onboarding store (non-fatal): {}", e);}}Ok(onboarding)diff --git a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs b/apps/screenpipe-app-tauri/src-tauri/src/updates.rsindex c2fd67003..c56744d16 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs@@ -242,7 +242,10 @@ impl UpdatesManager {);}Err(ref e) => {- error!("updater check() error: {}", e);+ // warn, not error — updater failures are mostly transient network+ // issues or "endpoints not set" on source builds; neither is actionable.+ // Sentry would just get noise.+ warn!("updater check() error: {}", e);}}if let Some(update) = check_result? {@@ -615,7 +618,8 @@ impl UpdatesManager {if !*self.update_available.lock().await {// Don't show dialog for periodic checks - only for manual checksif let Err(e) = self.check_for_updates(false).await {- error!("Failed to check for updates: {}", e);+ // warn, not error — see updater check() note above.+ warn!("Failed to check for updates: {}", e);}}}@@ -741,7 +745,8 @@ pub fn start_update_check(let updates_manager = updates_manager.clone();async move {if let Err(e) = updates_manager.check_for_updates(false).await {- error!("Failed to check for updates: {}", e);+ // warn, not error — see updater check() note above.+ warn!("Failed to check for updates: {}", e);}info!("Update check started");}