去掉调试信息
This commit is contained in:
@@ -401,7 +401,7 @@ void http_handler_status_msg(struct evhttp_request *req,void *arg)
|
||||
cJSON_AddItemToObject(root, "default gateway", cJSON_CreateString(default_gateway_tmp));
|
||||
cJSON_AddItemToObject(root, "memory info", cJSON_CreateString(mem_buf_tmp));
|
||||
cJSON_AddItemToObject(root, "cpu usage", cJSON_CreateString(cpu_usage_tmp));
|
||||
printf("cjson_status_print:%s\n", cJSON_Print(root));
|
||||
//printf("cjson_status_print:%s\n", cJSON_Print(root));
|
||||
MESA_handle_runtime_log(http_check_log_handler, RLOG_LV_INFO, module_name, cJSON_Print(root));
|
||||
//evbuffer_add_printf(retbuff,"System boot time: %d-%-d-%d %d:%d:%d\r\nsystem running time:%dday %dhour %dminute %dsecond\r\nprocess id:%d\r\ngateway:%s\r\nmemory info:%s\r\ncpu% = %f\r\n",
|
||||
// ptm->tm_year + 1900,ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, run_days,run_hour,run_minute,run_second,process_id,buff,buf,cpu_rate*cpu_num);
|
||||
@@ -441,7 +441,7 @@ void http_handler_keepalive_msg(struct evhttp_request *req,void *arg)
|
||||
return;
|
||||
}
|
||||
cJSON_AddItemToObject(root, "current time", cJSON_CreateString(asctime(local)));
|
||||
printf("cjson_keepalive_print:%s\n", cJSON_Print(root));
|
||||
//printf("cjson_keepalive_print:%s\n", cJSON_Print(root));
|
||||
MESA_handle_runtime_log(http_check_log_handler, RLOG_LV_INFO, module_name, cJSON_Print(root));
|
||||
evbuffer_add_printf(retbuff,cJSON_Print(root));
|
||||
evhttp_send_reply(req,HTTP_OK,"OK",retbuff);
|
||||
@@ -475,7 +475,7 @@ int http_check_init()
|
||||
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("*v12*******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, log_level);
|
||||
error_log_handler = MESA_create_runtime_log_handle(http_check_error_log_path, log_level);
|
||||
|
||||
Reference in New Issue
Block a user