summaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src/actions
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-27 15:23:28 +0800
committer魏曹先生 <1992414357@qq.com>2025-10-27 15:23:28 +0800
commite5238eebd2bc9cfbb508d7b69b3b84708bf184f7 (patch)
tree4e57bfaa6412d97ef51343bd873c16e1a2ac7694 /crates/vcs_actions/src/actions
parenta06fc2b7e0e11f2fbc1fe428785fa4d32571678a (diff)
Add some debug logs
Diffstat (limited to 'crates/vcs_actions/src/actions')
-rw-r--r--crates/vcs_actions/src/actions/local_actions.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/vcs_actions/src/actions/local_actions.rs b/crates/vcs_actions/src/actions/local_actions.rs
index c19b8f0..c2d9f4f 100644
--- a/crates/vcs_actions/src/actions/local_actions.rs
+++ b/crates/vcs_actions/src/actions/local_actions.rs
@@ -14,11 +14,10 @@ pub async fn hello_world_action(ctx: ActionContext, _n: ()) -> Result<(), TcpTar
};
if ctx.is_local() {
- // Invoke on local
- // Send the message to the server
- let _ = instance.lock().await.write_text("Hello World!").await;
+ // Local execution - communication is handled by on_proc_begin
+ info!("Hello World action executed locally");
} else if ctx.is_remote() {
- // Read the message from the client
+ // Remote execution - read the message from the client
let read = instance.lock().await.read_text().await?;
info!("{}", read)
}
@@ -43,9 +42,9 @@ pub async fn set_upstream_vault_action(
// Send the message to the server
let _ = instance.lock().await.write_text("Hello World!").await;
} else if ctx.is_remote() {
- // Read the message from the client
+ // Remote execution - read the message from the client
let read = instance.lock().await.read_text().await?;
- info!("{}", read)
+ info!("Received: {}", read)
}
Ok(())