summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-24 10:18:16 +0000
committerErmal <eri@pfsense.org>2013-01-24 10:18:16 +0000
commit203e4bb6253fd50cba66b64fbc5c605f95beacb5 (patch)
tree036aa68bacd0776ca6cb010b76cdc803a8938324 /etc
parent612230234f2522c2c370a1ed3ffd8bb969b50397 (diff)
downloadpfsense-203e4bb6253fd50cba66b64fbc5c605f95beacb5.zip
pfsense-203e4bb6253fd50cba66b64fbc5c605f95beacb5.tar.gz
Do not be so verbose by default this is just needed by a developer at best
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3a7e611..1f17b73 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1075,7 +1075,9 @@ function interface_bring_down($interface = "wan", $destroy = false) {
if (!isset($config['interfaces'][$interface]))
return;
- log_error("Calling interface down for interface {$interface}, destroy is " . (($destroy) ? 'true' : 'false'));
+
+ if ($g['debug'])
+ log_error("Calling interface down for interface {$interface}, destroy is " . (($destroy) ? 'true' : 'false'));
$ifcfg = $config['interfaces'][$interface];
OpenPOWER on IntegriCloud