log entire request line instead of URI only
This commit is contained in:
parent
11992c39f2
commit
75d58f0295
1 changed files with 13 additions and 20 deletions
|
@ -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 a new issue