Commit a7f6b854 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Include client IP address in HTTP-level error log messages

parent bf3da76e
Pipeline #2972 passed with stage
in 9 minutes and 51 seconds
......@@ -1491,7 +1491,7 @@ static void send_error(http_session_t * session, unsigned line, const char* mess
if(session->socket==INVALID_SOCKET)
return;
session->req.if_modified_since=0;
lprintf(LOG_INFO,"%04d !ERROR: %s (line %u)",session->socket,message,line);
lprintf(LOG_INFO,"%04d [%s] !ERROR: %s (line %u)",session->socket,session->host_ip,message,line);
session->req.keep_alive=FALSE;
session->req.send_location=NO_LOCATION;
SAFECOPY(error_code,message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment