chore: 降低 list_todos 日志级别为 debug

前端每次 todo_write 后自动刷新会触发 list_todos 命令,子代理多次更新待办时产生大量 INFO 日志噪音。将 handler 与 gateway 转发两处日志降级为 debug,默认不输出,需要排查时通过 RUST_LOG=debug 开启。
This commit is contained in:
oudecheng 2026-08-07 09:01:33 +08:00
parent 03be2ef5bc
commit feeb9d9c18
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ impl CommandHandler for ListTodosCommandHandler {
.list_todos(&scope_key)
.map_err(|e| CommandError::new("LIST_TODOS_ERROR", e.to_string()))?;
tracing::info!(
tracing::debug!(
scope_key = %scope_key,
record_count = records.len(),
"list_todos handler: reading from store"

View File

@ -676,7 +676,7 @@ async fn handle_inbound(
.get("todos_scope_key")
.cloned()
.unwrap_or_default();
tracing::info!(todo_count = todos.len(), %scope_key, "list_todos command response");
tracing::debug!(todo_count = todos.len(), %scope_key, "list_todos command response");
let _ = sender.send(WsOutbound::TodoList { todos, scope_key }).await;
}
}