[plugin_core] docroot: show stat() errors for all entries when debug log is enabled

personal/stbuehler/wip
Simon Lundström 9 years ago committed by Stefan Bühler
parent 76cf9761ce
commit 859da7d7eb
  1. 3
      src/main/plugin_core.c

@ -236,7 +236,8 @@ static liHandlerResult core_handle_docroot(liVRequest *vr, gpointer param, gpoin
g_string_truncate(vr->physical.doc_root, 0);
li_pattern_eval(vr, vr->physical.doc_root, g_array_index(arr, liPattern*, i), core_docroot_nth_cb, &dsplit, li_pattern_regex_cb, match_info);
if (i == arr->len - 1) break; /* don't stat, we'll use the last entry anyway */
/* if there's only one entry and we're not debug logging, don't stat */
if (i == arr->len - 1 && !CORE_OPTION(LI_CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) break;
/* check if path exists */
switch (li_stat_cache_get(vr, vr->physical.doc_root, &st, &err, NULL)) {

Loading…
Cancel
Save