Revision
15852
Author
brian
Date
2009-12-08 16:28:52 -0600 (Tue, 08 Dec 2009)

Log Message

move log line to debug only

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (15851 => 15852)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2009-12-08 21:30:49 UTC (rev 15851)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2009-12-08 22:28:52 UTC (rev 15852)
@@ -1378,7 +1378,9 @@
 	}
 	
 	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;
 	}