From: Michael Jerris Date: Tue, 1 Jul 2008 17:41:54 +0000 (+0000) Subject: dont flood logs with eavesdrop messages (MODAPP-101) X-Git-Tag: v1.0.1~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9184f616d565fc8464f3cb42b7cdbebcbb9c99;p=thirdparty%2Ffreeswitch.git dont flood logs with eavesdrop messages (MODAPP-101) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8874 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 424c513b55..ce3e9f7fd1 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -304,7 +304,9 @@ SWITCH_STANDARD_APP(eavesdrop_function) } if (e_data.total) { for (x = 0; x < e_data.total && switch_channel_ready(channel); x++) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Spy: %s\n", e_data.uuid_list[x]); + /* If we have a group and 1000 concurrent calls, we will flood the logs. This check avoids this */ + if ( !require_group ) + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Spy: %s\n", e_data.uuid_list[x]); if ((file = switch_channel_get_variable(channel, "eavesdrop_indicate_new"))) { switch_ivr_play_file(session, NULL, file, NULL); }