From ad3529e6fb3d9125284f0f5c69c46f11b9afc35b Mon Sep 17 00:00:00 2001 From: "ilblackdragon@gmail.com" Date: Mon, 23 Mar 2026 21:40:33 -0700 Subject: [PATCH] fix(bridge): demote all router info! logging to debug! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "engine v2: initializing" and "engine v2: handling message" were printing at INFO level, corrupting the REPL UI. All router logging now uses debug! — only visible with RUST_LOG=ironclaw=debug. Zero info! calls remain in crates/ironclaw_engine/ or src/bridge/. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/bridge/router.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bridge/router.rs b/src/bridge/router.rs index e0c95033..c49bcac6 100644 --- a/src/bridge/router.rs +++ b/src/bridge/router.rs @@ -3,7 +3,7 @@ use std::sync::{Arc, OnceLock}; use tokio::sync::RwLock; -use tracing::{debug, info}; +use tracing::debug; use ironclaw_engine::{ Capability, CapabilityRegistry, ConversationManager, LeaseManager, PolicyEngine, Project, @@ -61,7 +61,7 @@ async fn get_or_init_engine(agent: &Agent) -> Result<(), Error> { return Ok(()); // double-check after acquiring write lock } - info!("engine v2: initializing engine state"); + debug!("engine v2: initializing engine state"); let llm_adapter = Arc::new(LlmBridgeAdapter::new( agent.llm().clone(), @@ -175,7 +175,7 @@ pub async fn handle_approval( } // Approved — add to auto-approved set - info!( + debug!( tool = %pending.action_name, always, "engine v2: tool approved" @@ -190,7 +190,7 @@ pub async fn handle_approval( state.effect_adapter.auto_approve_tool(®istry_name).await; if always { - info!(tool = %pending.action_name, "engine v2: tool auto-approved for session"); + debug!(tool = %pending.action_name, "engine v2: tool auto-approved for session"); } // Re-process the original message — the tool will now pass approval @@ -219,7 +219,7 @@ pub async fn handle_with_engine( let guard = lock.read().await; let state = guard.as_ref().expect("engine initialized"); - info!( + debug!( user_id = %message.user_id, channel = %message.channel, "engine v2: handling message"