mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
log entire request line instead of URI only
This commit is contained in:
parent
98b5a3b15b
commit
a6b5957f92
@ -2613,12 +2613,6 @@ ngx_http_log_error_handler(ngx_http_request_t *r, ngx_http_request_t *sr,
|
|||||||
buf = p;
|
buf = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r->unparsed_uri.data) {
|
|
||||||
p = ngx_snprintf(buf, len, ", URL: \"%V\"", &r->unparsed_uri);
|
|
||||||
len -= p - buf;
|
|
||||||
buf = p;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if (r->request_line.data == NULL && r->request_start) {
|
if (r->request_line.data == NULL && r->request_start) {
|
||||||
for (p = r->request_start; p < r->header_in->last; p++) {
|
for (p = r->request_start; p < r->header_in->last; p++) {
|
||||||
if (*p == CR || *p == LF) {
|
if (*p == CR || *p == LF) {
|
||||||
@ -2635,7 +2629,6 @@ ngx_http_log_error_handler(ngx_http_request_t *r, ngx_http_request_t *sr,
|
|||||||
len -= p - buf;
|
len -= p - buf;
|
||||||
buf = p;
|
buf = p;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (r != sr) {
|
if (r != sr) {
|
||||||
p = ngx_snprintf(buf, len, ", subrequest: \"%V\"", &sr->uri);
|
p = ngx_snprintf(buf, len, ", subrequest: \"%V\"", &sr->uri);
|
||||||
|
Loading…
Reference in New Issue
Block a user