do not print this debug info unless the profile is in debug mode

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11440 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-01-22 23:53:59 +00:00
parent 33a3bcf56c
commit 4ef999c963
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,9 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
}
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;
}