[Freeswitch-svn] [commit] r10990 - freeswitch/trunk/libs/esl

FreeSWITCH SVN anthm at freeswitch.org
Mon Dec 29 10:40:41 PST 2008


Author: anthm
Date: Mon Dec 29 13:40:40 2008
New Revision: 10990

Log:
don't display console_clean logs

Modified:
   freeswitch/trunk/libs/esl/fs_cli.c

Modified: freeswitch/trunk/libs/esl/fs_cli.c
==============================================================================
--- freeswitch/trunk/libs/esl/fs_cli.c	(original)
+++ freeswitch/trunk/libs/esl/fs_cli.c	Mon Dec 29 13:40:40 2008
@@ -86,17 +86,17 @@
 						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;



More information about the Freeswitch-svn mailing list