Update llm_local.rs
All checks were successful
GBCI / build (push) Successful in 7m19s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-10-01 08:47:20 -03:00
parent 164f1db961
commit a2571bbd85

View file

@ -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::<Vec<_>>());
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::<Vec<_>>());
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());
}