refactor: add debug logs
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user