提交 c5134b94 authored 作者: Ken Rice's avatar Ken Rice

why didnt we do this earlier

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11057 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 cd44e9e7
...@@ -285,6 +285,17 @@ static int process_command(esl_handle_t *handle, const char *cmd) ...@@ -285,6 +285,17 @@ static int process_command(esl_handle_t *handle, const char *cmd)
goto end; goto end;
} }
if (!strncasecmp(cmd, "debug", 5)){
int tmp_debug = atoi(cmd+6);
if (tmp_debug > -1 && tmp_debug < 8){
esl_global_set_default_logger(tmp_debug);
printf("fs_cli debug level set to %d\n", tmp_debug);
} else {
printf("fs_cli debug level must be 0 - 7\n");
}
goto end;
}
printf("Unknown command [%s]\n", cmd); printf("Unknown command [%s]\n", cmd);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论