MESA_load_profile_string_nodef
This commit is contained in:
@@ -454,12 +454,12 @@ int http_check_init()
|
|||||||
int log_level = 30;
|
int log_level = 30;
|
||||||
|
|
||||||
MESA_load_profile_int_def(http_check_conf_file, "HTTP", "SERVER_PORT", (int *)(&g_http_port), 10000);
|
MESA_load_profile_int_def(http_check_conf_file, "HTTP", "SERVER_PORT", (int *)(&g_http_port), 10000);
|
||||||
MESA_load_profile_string_def(http_check_conf_file, "HTTP", "SERVER_IP", g_http_address, MAX_STR_LEN, "0.0.0.0");
|
MESA_load_profile_string_nodef(http_check_conf_file, "HTTP", "SERVER_IP", g_http_address, MAX_STR_LEN);
|
||||||
MESA_load_profile_string_def(http_check_conf_file, "HTTP", "HTTP_CHECK_LOG_PATH", http_check_log_path, MAX_STR_LEN, "");
|
MESA_load_profile_string_nodef(http_check_conf_file, "HTTP", "HTTP_CHECK_LOG_PATH", http_check_log_path, MAX_STR_LEN);
|
||||||
MESA_load_profile_string_def(http_check_conf_file, "HTTP", "HTTP_CHECK_ERR_LOG_PATH", http_check_error_log_path, MAX_STR_LEN, "");
|
MESA_load_profile_string_nodef(http_check_conf_file, "HTTP", "HTTP_CHECK_ERR_LOG_PATH", http_check_error_log_path, MAX_STR_LEN);
|
||||||
MESA_load_profile_string_def(http_check_conf_file, "HTTP", "MODULE_NAME", module_name, MAX_STR_LEN, "");
|
MESA_load_profile_string_nodef(http_check_conf_file, "HTTP", "MODULE_NAME", module_name, MAX_STR_LEN);
|
||||||
MESA_load_profile_int_def(http_check_conf_file, "HTTP", "LOG_LEVEL", &log_level, 30);
|
MESA_load_profile_int_def(http_check_conf_file, "HTTP", "LOG_LEVEL", &log_level, 30);
|
||||||
printf("*v12*******read_ip:%s,read_port:%d\n",g_http_address, g_http_port);
|
printf("*v22*******read_ip:%s,read_port:%d\n",g_http_address, g_http_port);
|
||||||
|
|
||||||
http_check_log_handler = MESA_create_runtime_log_handle(http_check_log_path, RLOG_LV_INFO);
|
http_check_log_handler = MESA_create_runtime_log_handle(http_check_log_path, RLOG_LV_INFO);
|
||||||
error_log_handler = MESA_create_runtime_log_handle(http_check_error_log_path, log_level);
|
error_log_handler = MESA_create_runtime_log_handle(http_check_error_log_path, log_level);
|
||||||
|
|||||||
Reference in New Issue
Block a user