From ca29e7b2152260059417c142641cd19ddbb512c4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 24 Dec 2025 16:12:46 +0800 Subject: Add local output channel for CLI feedback in track actions Add `try_get_local_output` helper to retrieve output channel from context and `local_println!` macro for sending formatted strings. Use these in track actions to send progress messages to CLI instead of stdout. Also reduce log level for connection events from info to debug. --- crates/vcs_actions/src/connection/action_service.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/vcs_actions/src/connection') diff --git a/crates/vcs_actions/src/connection/action_service.rs b/crates/vcs_actions/src/connection/action_service.rs index a736ed8..f137126 100644 --- a/crates/vcs_actions/src/connection/action_service.rs +++ b/crates/vcs_actions/src/connection/action_service.rs @@ -8,7 +8,7 @@ use std::{ use action_system::{action::ActionContext, action_pool::ActionPool}; use cfg_file::config::ConfigFile; -use log::{error, info, warn}; +use log::{debug, error, info, warn}; use tcp_connection::{error::TcpTargetError, instance::ConnectionInstance}; use tokio::{ net::{TcpListener, TcpStream}, @@ -134,7 +134,7 @@ fn build_server_future( accept_result = listener.accept(), if !shutdown_requested => { match accept_result { Ok((stream, _addr)) => { - info!("New connection. (now {})", active_connections); + debug!("New connection. (now {})", active_connections); let _ = tx.send(1).await; let vault_clone = vault.clone(); @@ -143,7 +143,7 @@ fn build_server_future( spawn(async move { process_connection(stream, vault_clone, action_pool_clone).await; - info!("A connection closed. (now {})", active_connections); + debug!("A connection closed. (now {})", active_connections); let _ = tx_clone.send(-1).await; }); } -- cgit