diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-12-07 23:34:25 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-12-07 23:34:25 +0000 |
commit | 61c6b6c1ffa1e57c17c6096c41c15654de9a7970 (patch) | |
tree | bf479f79aa00b8ed42886e72e2df47e400fa0ed9 | |
parent | 8f158ea1e4469c96170b1874a4c1c560af0e2d67 (diff) | |
download | pfsense-61c6b6c1ffa1e57c17c6096c41c15654de9a7970.zip pfsense-61c6b6c1ffa1e57c17c6096c41c15654de9a7970.tar.gz |
log mwexec if developerspew is on
-rw-r--r-- | etc/inc/util.inc | 2 |
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' "); |