summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-12-07 23:34:25 +0000
committerChris Buechler <cmb@pfsense.org>2008-12-07 23:34:25 +0000
commit61c6b6c1ffa1e57c17c6096c41c15654de9a7970 (patch)
treebf479f79aa00b8ed42886e72e2df47e400fa0ed9 /etc/inc/util.inc
parent8f158ea1e4469c96170b1874a4c1c560af0e2d67 (diff)
downloadpfsense-61c6b6c1ffa1e57c17c6096c41c15654de9a7970.zip
pfsense-61c6b6c1ffa1e57c17c6096c41c15654de9a7970.tar.gz
log mwexec if developerspew is on
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 466b599..219da0c 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -419,6 +419,8 @@ function mwexec($command, $mute = false) {
} else {
exec("$command 2>&1", $oarr, $retval);
}
+ if(isset($config['system']['developerspew']))
+ $mute = false;
if(($retval <> 0) && ($mute === false)) {
$output = implode(" ", $oarr);
//log_error("The command '$command' returned exit code '$retval', the output was '$output' ");
OpenPOWER on IntegriCloud