cleanup debug handling

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11023 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-12-31 16:52:11 +00:00
parent 0b8ec49dd8
commit c6b3871eb0
5 changed files with 15 additions and 22 deletions

View File

@@ -106,6 +106,13 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
known++;
} else if (!strcasecmp(type, "text/disconnect-notice")) {
running = thread_running = 0;
known++;
} else if (!strcasecmp(type, "text/event-plain")) {
char *foo;
esl_event_serialize(handle->last_ievent, &foo, ESL_FALSE);
printf("RECV EVENT\n%s\n", foo);
free(foo);
known++;
}
}
@@ -313,7 +320,6 @@ int main(int argc, char *argv[])
signal(SIGINT, handle_SIGINT);
handle.debug = 0;
esl_global_set_default_logger(6); /* default debug level to 6 (info) */
for(;;) {