diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
index 7a5ec1c20d..25f1b30f8b 100644
--- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
+++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
@@ -778,6 +778,7 @@ SWITCH_STANDARD_API(event_sink_function)
stream->write_function(stream, " Listener %u Created\n", listener->id);
xmlize_listener(listener, stream);
stream->write_function(stream, "\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 @@ SWITCH_STANDARD_API(event_sink_function)
}
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, "\n listener %u destroyed\n", listener->id);
xmlize_listener(listener, stream);
@@ -796,6 +798,7 @@ SWITCH_STANDARD_API(event_sink_function)
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, "Can't find listener\n");
goto end;
}