mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
cleanup debug handling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11023 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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(;;) {
|
||||
|
Reference in New Issue
Block a user