[Freeswitch-svn] [commit] r3110 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket
Freeswitch SVN
anthm at freeswitch.org
Thu Oct 19 14:52:47 EDT 2006
Author: anthm
Date: Thu Oct 19 14:52:46 2006
New Revision: 3110
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
present from pdt
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c Thu Oct 19 14:52:46 2006
@@ -593,10 +593,20 @@
} else if (!strncasecmp(cmd, "log", 3)) {
char *level_s;
+
+ //pull off the first newline/carriage return
strip_cr(cmd);
- level_s = cmd + 4;
+ //move past the command
+ level_s = cmd + 3;
+ //see if we got an argument
+ if(!switch_strlen_zero(level_s)) {
+ //if so move to the argument
+ level_s++;
+ }
+
+ //see if we lined up on an argument or not
if (switch_strlen_zero(level_s)) {
level_s = "debug";
}
More information about the Freeswitch-svn
mailing list