* Optimize code flow
This whole code is only needed if have a loglevel of at least DEBUG.
@@ -4080,6 +4080,7 @@ static const char *set_recursion_limit(cmd_parms *cmd, void *dummy,
static void log_backtrace(const request_rec *r)
{
+ if (APLOGrdebug(r)) {
const request_rec *top = r;
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00121)
@@ -4101,6 +4102,7 @@ static void log_backtrace(const request_rec *r)
}
}
}
+}
/*
* check whether redirect limit is reached
