diff --git a/src-tauri/src/commands/models.rs b/src-tauri/src/commands/models.rs index a583403..957b5f1 100644 --- a/src-tauri/src/commands/models.rs +++ b/src-tauri/src/commands/models.rs @@ -208,11 +208,11 @@ pub fn prewarm_default_model(whisper_engine: Arc) { let options = TranscriptionOptions::default(); match whisper_engine.transcribe_sync(&silence, &options) { Ok(_) => tracing::info!( - target: "magnotia_startup", + target: "lumotia_startup", "Whisper warm-up inference complete" ), Err(e) => tracing::warn!( - target: "magnotia_startup", + target: "lumotia_startup", error = %e, "Whisper warm-up inference failed" ), @@ -223,16 +223,16 @@ pub fn prewarm_default_model(whisper_engine: Arc) { match result { Ok(Ok(())) => tracing::info!( - target: "magnotia_startup", + target: "lumotia_startup", "Whisper model pre-warmed successfully" ), Ok(Err(e)) => tracing::warn!( - target: "magnotia_startup", + target: "lumotia_startup", error = %e, "Whisper pre-warm failed" ), Err(e) => tracing::error!( - target: "magnotia_startup", + target: "lumotia_startup", error = %e, "Whisper pre-warm task panicked" ), diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 50c9ce7..8caf839 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -123,7 +123,7 @@ fn warn_if_x11_env_unset_on_wayland() { let warn_if_unset = |key: &str, value: &str, why: &str| { if std::env::var_os(key).is_none() { tracing::warn!( - target: "magnotia_startup", + target: "lumotia_startup", key, expected = value, why, @@ -162,7 +162,7 @@ fn init_tracing() { TRACING_INIT.call_once(|| { let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| { EnvFilter::new( - "warn,magnotia=info,lumotia_lib=info,lumotia_audio=info,magnotia_startup=info,lumotia_hotkey=info,lumotia_ai_formatting=info", + "warn,lumotia=info,lumotia_lib=info,lumotia_core=info,lumotia_audio=info,lumotia_hotkey=info,lumotia_ai_formatting=info,lumotia_llm=info,lumotia_storage=info,lumotia_transcription=info,lumotia_startup=info", ) }); @@ -227,7 +227,7 @@ pub fn run() { let db = init_db(&db_path) .await .map_err(|e| Box::new(e) as Box)?; - tracing::info!(target: "magnotia_startup", elapsed_ms = t0.elapsed().as_millis(), "DB init complete"); + tracing::info!(target: "lumotia_startup", elapsed_ms = t0.elapsed().as_millis(), "DB init complete"); // Prune old `error_log` rows so the table doesn't grow unbounded // across months of dogfooding. Best-effort — a prune failure is @@ -235,20 +235,20 @@ pub fn run() { let t_prune = Instant::now(); match prune_error_log(&db, ERROR_LOG_RETENTION_DAYS).await { Ok(n) if n > 0 => tracing::info!( - target: "magnotia_startup", + target: "lumotia_startup", rows_removed = n, retention_days = ERROR_LOG_RETENTION_DAYS, elapsed_ms = t_prune.elapsed().as_millis(), "error log prune complete" ), Ok(_) => {} - Err(e) => tracing::warn!(target: "magnotia_startup", error = %e, "error log prune failed"), + Err(e) => tracing::warn!(target: "lumotia_startup", error = %e, "error log prune failed"), } // Load saved preferences for webview injection. let t1 = Instant::now(); let prefs_json = get_setting(&db, "magnotia_preferences").await.unwrap_or(None); - tracing::info!(target: "magnotia_startup", elapsed_ms = t1.elapsed().as_millis(), "preferences load complete"); + tracing::info!(target: "lumotia_startup", elapsed_ms = t1.elapsed().as_millis(), "preferences load complete"); let init_script = build_preferences_script(prefs_json); Ok::<_, Box>((db, init_script)) @@ -286,7 +286,7 @@ pub fn run() { } tracing::warn!( - target: "magnotia_startup", + target: "lumotia_startup", "Linux WebKitGTK microphone permission requests are auto-granted for audio-only capture; other permission classes remain denied" ); @@ -321,7 +321,7 @@ pub fn run() { // silently denies) instead of auto-granting, // which is degraded but recoverable. tracing::warn!( - target: "magnotia_startup", + target: "lumotia_startup", error = %e, "failed to configure webview media permissions" ); @@ -366,7 +366,7 @@ pub fn run() { #[cfg(not(target_os = "android"))] if let Err(e) = tray::setup(app) { - tracing::warn!(target: "magnotia_startup", error = %e, "failed to setup tray"); + tracing::warn!(target: "lumotia_startup", error = %e, "failed to setup tray"); } Ok(())