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

FreeSWITCH SVN silik0n at freeswitch.org
Fri Jan 2 09:40:26 PST 2009


Author: silik0n
Date: Fri Jan  2 12:40:26 2009
New Revision: 11057

Log:
why didnt we do this earlier

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	Fri Jan  2 12:40:26 2009
@@ -285,6 +285,17 @@
 
 			goto end;
 		}
+		
+		if (!strncasecmp(cmd, "debug", 5)){
+			int tmp_debug = atoi(cmd+6);
+			if (tmp_debug > -1 && tmp_debug < 8){
+				esl_global_set_default_logger(tmp_debug);
+				printf("fs_cli debug level set to %d\n", tmp_debug);
+			} else {
+				printf("fs_cli debug level must be 0 - 7\n");
+			}
+			goto end;
+		}
 	
 		printf("Unknown command [%s]\n", cmd);
 	} else {



More information about the Freeswitch-svn mailing list