]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
do not print this debug info unless the profile is in debug mode
authorBrian West <brian@freeswitch.org>
Thu, 22 Jan 2009 23:53:59 +0000 (23:53 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 22 Jan 2009 23:53:59 +0000 (23:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11440 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index e373335627272d653e20f73febf37d592897d1f0..440ff1f8ba6b6aab34eb3544a3505022a424f616 100644 (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;     
        }