summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryzc <[email protected]>2019-12-31 17:47:19 +0800
committeryzc <[email protected]>2019-12-31 17:47:19 +0800
commit31f33737e73b3362de83637a80c1c0b7acf120b3 (patch)
tree0f91340515a91030d4cfaac8788e75d8a54208f9
parent6d785a3417e9b82ddbd566d08551f1b39aaad5e3 (diff)
MESA_load_profile_string_nodef
-rw-r--r--http_check/src/http_check.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/http_check/src/http_check.c b/http_check/src/http_check.c
index 6ed2e6d..20f4958 100644
--- a/http_check/src/http_check.c
+++ b/http_check/src/http_check.c
@@ -454,12 +454,12 @@ int http_check_init()
int log_level = 30;
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_def(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_def(http_check_conf_file, "HTTP", "MODULE_NAME", module_name, MAX_STR_LEN, "");
+ MESA_load_profile_string_nodef(http_check_conf_file, "HTTP", "SERVER_IP", g_http_address, 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_nodef(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", "MODULE_NAME", module_name, MAX_STR_LEN);
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);
error_log_handler = MESA_create_runtime_log_handle(http_check_error_log_path, log_level);