| 3969 | } |
| 3970 | |
| 3971 | static void log_backtrace(const request_rec *r) |
| 3972 | { |
| 3973 | if (APLOGrdebug(r)) { |
| 3974 | const request_rec *top = r; |
| 3975 | |
| 3976 | ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00121) |
| 3977 | "r->uri = %s", r->uri ? r->uri : "(unexpectedly NULL)"); |
| 3978 | |
| 3979 | while (top && (top->prev || top->main)) { |
| 3980 | if (top->prev) { |
| 3981 | top = top->prev; |
| 3982 | ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00122) |
| 3983 | "redirected from r->uri = %s", |
| 3984 | top->uri ? top->uri : "(unexpectedly NULL)"); |
| 3985 | } |
| 3986 | |
| 3987 | if (!top->prev && top->main) { |
| 3988 | top = top->main; |
| 3989 | ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00123) |
| 3990 | "subrequested from r->uri = %s", |
| 3991 | top->uri ? top->uri : "(unexpectedly NULL)"); |
| 3992 | } |
| 3993 | } |
| 3994 | } |
| 3995 | } |
| 3996 | |
| 3997 | /* |
| 3998 | * check whether redirect limit is reached |
no outgoing calls
no test coverage detected