why didnt we do this earlier

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11057 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Ken Rice 2009-01-02 17:40:26 +00:00
parent cd44e9e72e
commit c5134b9448
1 changed files with 11 additions and 0 deletions

View File

@ -285,6 +285,17 @@ static int process_command(esl_handle_t *handle, const char *cmd)
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);
} else {