don't display console_clean logs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10990 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
967520ba1c
commit
97656065cd
|
@ -86,17 +86,17 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
|
|||
int level = 0, tchannel = 0;
|
||||
const char *lname = esl_event_get_header(handle->last_event, "log-level");
|
||||
const char *channel = esl_event_get_header(handle->last_event, "text-channel");
|
||||
const char *file = esl_event_get_header(handle->last_event, "log-file");
|
||||
//const char *file = esl_event_get_header(handle->last_event, "log-file");
|
||||
|
||||
if (channel) {
|
||||
tchannel = atoi(channel);
|
||||
}
|
||||
|
||||
|
||||
if (lname) {
|
||||
level = atoi(lname);
|
||||
}
|
||||
|
||||
if (tchannel == 0 || (file && !strcmp(file, "switch_console.c"))) {
|
||||
|
||||
if (tchannel == 0) {
|
||||
#ifdef WIN32
|
||||
DWORD len = (DWORD) strlen(handle->last_event->body);
|
||||
DWORD outbytes = 0;
|
||||
|
|
Loading…
Reference in New Issue