From a2571bbd85457ee882c42a6955b43af94b8e293f Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 1 Oct 2025 08:47:20 -0300 Subject: [PATCH] Update llm_local.rs --- src/services/llm_local.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/services/llm_local.rs b/src/services/llm_local.rs index 7ba198b..05ca382 100644 --- a/src/services/llm_local.rs +++ b/src/services/llm_local.rs @@ -234,6 +234,11 @@ async fn start_llm_server( .stdout(Stdio::piped()) .stderr(Stdio::piped()); + // Get the command as a string + info!("Command: {}", cmd.get_program().to_string_lossy()); + info!("Args: {:?}", cmd.get_args().collect::>()); + info!("Current dir: {:?}", cmd.get_current_dir()); + // Spawn and don't wait for completion let child = cmd.spawn()?; @@ -267,6 +272,7 @@ async fn start_llm_server( .stdout(Stdio::piped()) .stderr(Stdio::piped()); + info!("LLM server command: {}", cmd); let child = cmd.spawn()?; info!("LLM server started with PID: {}", child.id()); } @@ -330,11 +336,13 @@ async fn start_embedding_server( .stdout(Stdio::piped()) .stderr(Stdio::piped()); - // Spawn and don't wait for completion + // Get the command as a string + info!("Command: {}", cmd.get_program().to_string_lossy()); + info!("Args: {:?}", cmd.get_args().collect::>()); + info!("Current dir: {:?}", cmd.get_current_dir()); + let child = cmd.spawn()?; - // Store the child process if you need to manage it later - // You might want to add this to a process manager info!("Embedding server started with PID: {}", child.id()); }