section names use minus(-) such as error-log and slow-log
parent
2a57961b59
commit
65876c51d7
|
|
@ -331,7 +331,7 @@ int sf_load_global_config_ex(const char *server_name,
|
|||
SF_MIN_THREAD_STACK_SIZE, SF_MAX_THREAD_STACK_SIZE, true);
|
||||
|
||||
old_section_name = ini_ctx->section_name;
|
||||
ini_ctx->section_name = "error_log";
|
||||
ini_ctx->section_name = "error-log";
|
||||
if ((result=sf_load_log_config(ini_ctx, &g_log_context,
|
||||
&g_sf_global_vars.error_log)) != 0)
|
||||
{
|
||||
|
|
@ -539,7 +539,7 @@ void sf_global_config_to_string(char *output, const int size)
|
|||
);
|
||||
|
||||
sf_log_config_to_string(&g_sf_global_vars.error_log,
|
||||
"error_log", output + len, size - len);
|
||||
"error-log", output + len, size - len);
|
||||
}
|
||||
|
||||
void sf_log_config_ex(const char *other_config)
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ static inline int sf_load_slow_log_config(const char *config_file,
|
|||
{
|
||||
IniFullContext ini_ctx;
|
||||
|
||||
FAST_INI_SET_FULL_CTX_EX(ini_ctx, config_file, "slow_log", ini_context);
|
||||
FAST_INI_SET_FULL_CTX_EX(ini_ctx, config_file, "slow-log", ini_context);
|
||||
return sf_load_slow_log_config_ex(&ini_ctx, log_ctx, slow_log_cfg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue