feat(llm): simplify log file paths and remove redundant verbose flag

Removed the redundant `--verbose` flag from Windows command since it's not needed. Standardized log file names to `llm-stdout.log` and `llmembd-stdout.log` for consistency across platforms. This makes log management simpler and more predictable.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-12 18:20:50 -03:00
parent fd9e14e43a
commit dbe19867ac

View file

@ -265,7 +265,7 @@ pub async fn start_llm_server(
if cfg!(windows) {
let mut cmd = tokio::process::Command::new("cmd");
cmd.arg("/C").arg(format!(
"cd {} && .\\llama-server.exe {} --verbose>llm-stdout.log",
"cd {} && .\\llama-server.exe {}",
llama_cpp_path, args
));
info!(
@ -276,7 +276,7 @@ pub async fn start_llm_server(
} else {
let mut cmd = tokio::process::Command::new("sh");
cmd.arg("-c").arg(format!(
"cd {} && ./llama-server {} --verbose >../../../../logs/llm/stdout.log 2>&1 &",
"cd {} && ./llama-server {} --verbose >llm-stdout.log 2>&1 &",
llama_cpp_path, args
));
info!(
@ -303,7 +303,7 @@ pub async fn start_embedding_server(
} else {
let mut cmd = tokio::process::Command::new("sh");
cmd.arg("-c").arg(format!(
"cd {} && ./llama-server -m {} --verbose --host 0.0.0.0 --port {} --embedding --n-gpu-layers 99 >stdout.log 2>&1 &",
"cd {} && ./llama-server -m {} --verbose --host 0.0.0.0 --port {} --embedding --n-gpu-layers 99 >llmembd-stdout.log 2>&1 &",
llama_cpp_path, model_path, port
));
cmd.spawn()?;