[Freeswitch-svn] [commit] r11365 - freeswitch/branches/1.0/src/mod/event_handlers/mod_event_socket

FreeSWITCH SVN mikej at freeswitch.org
Thu Jan 22 10:30:12 PST 2009


Author: mikej
Date: Thu Jan 22 12:30:12 2009
New Revision: 11365

Log:
mod_event_socket: add debug logging to event-sink (r:11060)

Modified:
   freeswitch/branches/1.0/src/mod/event_handlers/mod_event_socket/mod_event_socket.c

Modified: freeswitch/branches/1.0/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/branches/1.0/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/branches/1.0/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Thu Jan 22 12:30:12 2009
@@ -778,6 +778,7 @@
 		stream->write_function(stream, " <reply type=\"success\">Listener %u Created</reply>\n", listener->id);
 		xmlize_listener(listener, stream);
 		stream->write_function(stream, "</data>\n");
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Creating event-sink listener [%u]\n", listener->id);
 
 		goto end;
 	} else if (!strcasecmp(wcmd, "destroy-listener")) {		
@@ -789,6 +790,7 @@
 		}
 
 		if ((listener = find_listener(idl))) {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Destroying event-sink listener [%u]\n", idl);
 			remove_listener(listener);
 			stream->write_function(stream, "<data>\n <reply type=\"success\">listener %u destroyed</reply>\n", listener->id);
 			xmlize_listener(listener, stream);
@@ -796,6 +798,7 @@
 			expire_listener(&listener);
 			goto end;
 		} else {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Request to destroy unknown event-sink listener [%u]\n", idl);
 			stream->write_function(stream, "<data><reply type=\"error\">Can't find listener</reply></data>\n");
 			goto end;
 		}



More information about the Freeswitch-svn mailing list