Add aaa-12 扩充logging host get功能
RCA: SOL: 修改人:liangxia 检视人:
This commit is contained in:
parent
b22e9c6da7
commit
23e3492855
|
@ -608,10 +608,7 @@ ret_code log_remote_host_x_config_get(uint source,
|
|||
RET_ERR_FORMART(ret, err_no, output, *output_len);
|
||||
ASSERT_RET(ret);
|
||||
|
||||
cm_log_remote_host_x_format_json_array(host_xs, cnt, output, output_len);
|
||||
ULOG_DEBUG(g_log_h, "liangxia log: log_remote_host_x_config_get, output=%s, output_len=%d",
|
||||
output, *output_len);
|
||||
|
||||
cm_log_remote_host_x_format_json_array(host_xs, cnt, output, output_len);
|
||||
rpc_free(host_xs);
|
||||
|
||||
return ret;
|
||||
|
@ -637,10 +634,7 @@ ret_code log_remote_host_x_config_getall(uint source,
|
|||
RET_ERR_FORMART(ret, err_no, output, *output_len);
|
||||
ASSERT_RET(ret);
|
||||
|
||||
cm_log_remote_host_x_format_json_array(host_xs, cnt, output, output_len);
|
||||
ULOG_DEBUG(g_log_h, "liangxia log: log_remote_host_x_config_getall, output=%s, output_len=%d",
|
||||
output, *output_len);
|
||||
|
||||
cm_log_remote_host_x_format_json_array(host_xs, cnt, output, output_len);
|
||||
rpc_free(host_xs);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -89,7 +89,7 @@ static void logging_usage()
|
|||
fprintf(stdout, "\n");
|
||||
|
||||
fprintf(stdout, "5. usage of %s %s:\n", LOGGING_MODULE_NAME, g_log_cmd[4].cmd);
|
||||
fprintf(stdout, " %s %s [<level>, default=info] [<file_path>, default=/var/log/syslog-test] [<is_compress>, default=0] [<del_over_days>, default=180] [<del_over_size>, default=]\n", LOGGING_MODULE_NAME, g_log_cmd[4].cmd);
|
||||
fprintf(stdout, " %s %s [<level>, default=info] [<file_path>, default=/var/log/syslog-test] [<is_compress>, default=0] [<del_over_days>, default=180] [<del_over_size>, default=0]\n", LOGGING_MODULE_NAME, g_log_cmd[4].cmd);
|
||||
fprintf(stdout, " %s %s get\n", LOGGING_MODULE_NAME, g_log_cmd[4].cmd);
|
||||
fprintf(stdout, " <level> = emerg | alert | crit | err | warn | notice | info | debug\n");
|
||||
fprintf(stdout, " <file_path> is the path of syslog files saved\n");
|
||||
|
|
Loading…
Reference in New Issue