fix(tauri): replace silent let _ = with structured logging across 20 modules

Replace error-swallowing let _ = patterns with tracing::warn! in browser,
classroom, gateway, intelligence, memory, pipeline, secure_storage, and
viking command handlers. Ensures errors are observable in production logs.
This commit is contained in:
iven
2026-04-03 00:28:39 +08:00
parent 52bdafa633
commit 15d578c5bc
20 changed files with 129 additions and 0 deletions

View File

@@ -719,6 +719,7 @@ pub type ReflectionEngineState = Arc<Mutex<ReflectionEngine>>;
/// Initialize reflection engine with config
/// Updates the shared state with new configuration
// @connected
#[tauri::command]
pub async fn reflection_init(
config: Option<ReflectionConfig>,
@@ -732,6 +733,7 @@ pub async fn reflection_init(
}
/// Record a conversation
// @connected
#[tauri::command]
pub async fn reflection_record_conversation(
state: tauri::State<'_, ReflectionEngineState>,
@@ -742,6 +744,7 @@ pub async fn reflection_record_conversation(
}
/// Check if reflection should run
// @connected
#[tauri::command]
pub async fn reflection_should_reflect(
state: tauri::State<'_, ReflectionEngineState>,
@@ -751,6 +754,7 @@ pub async fn reflection_should_reflect(
}
/// Execute reflection
// @connected
#[tauri::command]
pub async fn reflection_reflect(
agent_id: String,
@@ -766,6 +770,7 @@ pub async fn reflection_reflect(
/// Returns in-memory history first. If empty and an agent_id is provided,
/// falls back to the persisted history array from VikingStorage metadata,
/// then to the single latest result for backward compatibility.
// @connected
#[tauri::command]
pub async fn reflection_get_history(
limit: Option<usize>,
@@ -815,6 +820,7 @@ pub async fn reflection_get_history(
}
/// Get reflection state
// @connected
#[tauri::command]
pub async fn reflection_get_state(
state: tauri::State<'_, ReflectionEngineState>,