summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-12-07 23:33:16 +0000
committerChris Buechler <cmb@pfsense.org>2008-12-07 23:33:16 +0000
commite58e7965a207c0505317a1297a8af4f05521116a (patch)
tree67b25430fe31f53c5cb9e4e86a7ed267da9adbdf
parent1372ae55f99d70a4baefc510aaf8e9e9de45c2d3 (diff)
downloadpfsense-e58e7965a207c0505317a1297a8af4f05521116a.zip
pfsense-e58e7965a207c0505317a1297a8af4f05521116a.tar.gz
log mwexec if developerspew is on
-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 3d4354f..022777d 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -357,6 +357,8 @@ function mwexec($command, $mute = true) {
} 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