refactor: add debug logs

This commit is contained in:
DL
2026-04-09 16:03:29 +02:00
parent 834cb9619e
commit 1280c1e094

View File

@@ -581,8 +581,9 @@ fn fcgi_execute_request_handle(rq: &mut FGCIRequest) -> Result<(), Box<dyn std::
.params
.get("SCRIPT_FILENAME")
.ok_or(ERR!("No SCRIPT_FILENAME found"))?;
DEBUG!("Execute CGI script: {}", path);
DEBUG!("Reading CGI script: {}", path);
let source = std::fs::read_to_string(path)?;
DEBUG!("Executing CGI script: {}", path);
lua.load(&source).exec()?;
Ok(())
}