From: nneul at mst.edu Date: Tue, 19 Jul 2016 18:03:12 +0000 (-0500) Subject: [FS-9367] log session counts at channel state change X-Git-Tag: v1.8.0~1080^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd6667fd2e30122ce7facf74a2f26ee7dfb26fc;p=thirdparty%2Ffreeswitch.git [FS-9367] log session counts at channel state change --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 9a1ce6d23b..493b9bea73 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -2233,8 +2233,8 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state( switch_channel_clear_flag(channel, CF_TAGGED); - switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, switch_channel_get_uuid(channel), SWITCH_LOG_DEBUG, "(%s) Running State Change %s\n", - channel->name, state_names[state]); + switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, switch_channel_get_uuid(channel), SWITCH_LOG_DEBUG, "(%s) Running State Change %s (Cur %d Tot %" SWITCH_SIZE_T_FMT ")\n", + channel->name, state_names[state], switch_core_session_count(), switch_core_session_id() - 1); switch_mutex_lock(channel->state_mutex);