[commit] r11440 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: brian Date: Thu Jan 22 17:53:59 2009 New Revision: 11440 Log: do not print this debug info unless the profile is in debug mode Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Thu Jan 22 17:53:59 2009 @@ -192,7 +192,9 @@ } if (!sofia_private || !sofia_private->gateway) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Gateway information missing Subscription Event: %s\n", sip->sip_event->o_type); + if (profile->debug) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Gateway information missing Subscription Event: %s\n", sip->sip_event->o_type); + } goto error; }
participants (1)
-
FreeSWITCH SVN