MCPcopy Create free account
hub / github.com/apache/httpd / ap_merge_log_config

Function ap_merge_log_config

server/config.c:2140–2161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2138}
2139
2140AP_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
2163AP_DECLARE(void) ap_fixup_virtual_hosts(apr_pool_t *p, server_rec *main_server)
2164{

Callers 2

ap_fixup_virtual_hostsFunction · 0.85
merge_core_dir_configsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected