From 97656065cda78ea4e44c384915a273ebb61e1beb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 29 Dec 2008 18:40:40 +0000 Subject: [PATCH] don't display console_clean logs git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10990 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/fs_cli.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 36b405bfbe..30971e8fab 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -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;