agent: lumotia-rebrand — tracing filter targets
Phase 4 of the rebrand cascade. Updates the default RUST_LOG filter in src-tauri/src/lib.rs and all 'target: "magnotia_startup"' string literals across src-tauri/src/lib.rs and src-tauri/src/commands/models.rs. Default filter (before): warn,magnotia=info,lumotia_lib=info,lumotia_audio=info, magnotia_startup=info,lumotia_hotkey=info,lumotia_ai_formatting=info Default filter (after): 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 magnotia_startup was a logical tracing target (not a crate); renamed to lumotia_startup for consistency. magnotia_lib was already renamed to lumotia_lib in Phase 2. Added per-crate filter entries for parity across the workspace. cargo build --workspace passes. cargo test --workspace: 330 pass, 0 fail. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -208,11 +208,11 @@ pub fn prewarm_default_model(whisper_engine: Arc<LocalEngine>) {
|
|||||||
let options = TranscriptionOptions::default();
|
let options = TranscriptionOptions::default();
|
||||||
match whisper_engine.transcribe_sync(&silence, &options) {
|
match whisper_engine.transcribe_sync(&silence, &options) {
|
||||||
Ok(_) => tracing::info!(
|
Ok(_) => tracing::info!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
"Whisper warm-up inference complete"
|
"Whisper warm-up inference complete"
|
||||||
),
|
),
|
||||||
Err(e) => tracing::warn!(
|
Err(e) => tracing::warn!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
error = %e,
|
error = %e,
|
||||||
"Whisper warm-up inference failed"
|
"Whisper warm-up inference failed"
|
||||||
),
|
),
|
||||||
@@ -223,16 +223,16 @@ pub fn prewarm_default_model(whisper_engine: Arc<LocalEngine>) {
|
|||||||
|
|
||||||
match result {
|
match result {
|
||||||
Ok(Ok(())) => tracing::info!(
|
Ok(Ok(())) => tracing::info!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
"Whisper model pre-warmed successfully"
|
"Whisper model pre-warmed successfully"
|
||||||
),
|
),
|
||||||
Ok(Err(e)) => tracing::warn!(
|
Ok(Err(e)) => tracing::warn!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
error = %e,
|
error = %e,
|
||||||
"Whisper pre-warm failed"
|
"Whisper pre-warm failed"
|
||||||
),
|
),
|
||||||
Err(e) => tracing::error!(
|
Err(e) => tracing::error!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
error = %e,
|
error = %e,
|
||||||
"Whisper pre-warm task panicked"
|
"Whisper pre-warm task panicked"
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ fn warn_if_x11_env_unset_on_wayland() {
|
|||||||
let warn_if_unset = |key: &str, value: &str, why: &str| {
|
let warn_if_unset = |key: &str, value: &str, why: &str| {
|
||||||
if std::env::var_os(key).is_none() {
|
if std::env::var_os(key).is_none() {
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
key,
|
key,
|
||||||
expected = value,
|
expected = value,
|
||||||
why,
|
why,
|
||||||
@@ -162,7 +162,7 @@ fn init_tracing() {
|
|||||||
TRACING_INIT.call_once(|| {
|
TRACING_INIT.call_once(|| {
|
||||||
let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||||
EnvFilter::new(
|
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)
|
let db = init_db(&db_path)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| Box::new(e) as Box<dyn std::error::Error>)?;
|
.map_err(|e| Box::new(e) as Box<dyn std::error::Error>)?;
|
||||||
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
|
// Prune old `error_log` rows so the table doesn't grow unbounded
|
||||||
// across months of dogfooding. Best-effort — a prune failure is
|
// across months of dogfooding. Best-effort — a prune failure is
|
||||||
@@ -235,20 +235,20 @@ pub fn run() {
|
|||||||
let t_prune = Instant::now();
|
let t_prune = Instant::now();
|
||||||
match prune_error_log(&db, ERROR_LOG_RETENTION_DAYS).await {
|
match prune_error_log(&db, ERROR_LOG_RETENTION_DAYS).await {
|
||||||
Ok(n) if n > 0 => tracing::info!(
|
Ok(n) if n > 0 => tracing::info!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
rows_removed = n,
|
rows_removed = n,
|
||||||
retention_days = ERROR_LOG_RETENTION_DAYS,
|
retention_days = ERROR_LOG_RETENTION_DAYS,
|
||||||
elapsed_ms = t_prune.elapsed().as_millis(),
|
elapsed_ms = t_prune.elapsed().as_millis(),
|
||||||
"error log prune complete"
|
"error log prune complete"
|
||||||
),
|
),
|
||||||
Ok(_) => {}
|
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.
|
// Load saved preferences for webview injection.
|
||||||
let t1 = Instant::now();
|
let t1 = Instant::now();
|
||||||
let prefs_json = get_setting(&db, "magnotia_preferences").await.unwrap_or(None);
|
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);
|
let init_script = build_preferences_script(prefs_json);
|
||||||
|
|
||||||
Ok::<_, Box<dyn std::error::Error>>((db, init_script))
|
Ok::<_, Box<dyn std::error::Error>>((db, init_script))
|
||||||
@@ -286,7 +286,7 @@ pub fn run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tracing::warn!(
|
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"
|
"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,
|
// silently denies) instead of auto-granting,
|
||||||
// which is degraded but recoverable.
|
// which is degraded but recoverable.
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
target: "magnotia_startup",
|
target: "lumotia_startup",
|
||||||
error = %e,
|
error = %e,
|
||||||
"failed to configure webview media permissions"
|
"failed to configure webview media permissions"
|
||||||
);
|
);
|
||||||
@@ -366,7 +366,7 @@ pub fn run() {
|
|||||||
|
|
||||||
#[cfg(not(target_os = "android"))]
|
#[cfg(not(target_os = "android"))]
|
||||||
if let Err(e) = tray::setup(app) {
|
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(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user