]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move log line to debug only
authorBrian West <brian@freeswitch.org>
Tue, 8 Dec 2009 22:28:52 +0000 (22:28 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 8 Dec 2009 22:28:52 +0000 (22:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15852 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 353166ec888278019f53faac5600b3a225303077..f5f6849795774d73dd69154e59726191e5ce5697 100644 (file)
@@ -1378,7 +1378,9 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
        }
        
        if (is_nat && profile->local_network && switch_check_network_list_ip(network_ip, profile->local_network)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IP %s is on local network, not seting NAT mode.\n", network_ip);
+               if (profile->debug) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IP %s is on local network, not seting NAT mode.\n", network_ip);
+               }
                is_nat = NULL;
        }