From 4ef999c963bc21a4d8432f303d0f7fff72d8fa46 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 22 Jan 2009 23:53:59 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index e373335627..440ff1f8ba 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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; }