| 2138 | } |
| 2139 | |
| 2140 | AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf, |
| 2141 | struct ap_logconf *new_conf) |
| 2142 | { |
| 2143 | if (new_conf->level != APLOG_UNSET) { |
| 2144 | /* Setting the main loglevel resets all per-module log levels. |
| 2145 | * I.e. if new->level has been set, we must ignore old->module_levels. |
| 2146 | */ |
| 2147 | return; |
| 2148 | } |
| 2149 | |
| 2150 | new_conf->level = old_conf->level; |
| 2151 | if (new_conf->module_levels == NULL) { |
| 2152 | new_conf->module_levels = old_conf->module_levels; |
| 2153 | } |
| 2154 | else if (old_conf->module_levels != NULL) { |
| 2155 | int i; |
| 2156 | for (i = 0; i < conf_vector_length; i++) { |
| 2157 | if (new_conf->module_levels[i] == APLOG_UNSET) |
| 2158 | new_conf->module_levels[i] = old_conf->module_levels[i]; |
| 2159 | } |
| 2160 | } |
| 2161 | } |
| 2162 | |
| 2163 | AP_DECLARE(void) ap_fixup_virtual_hosts(apr_pool_t *p, server_rec *main_server) |
| 2164 | { |
no outgoing calls
no test coverage detected