summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-01-16 14:49:42 +0000
committerSeth Mos <seth.mos@xs4all.nl>2009-01-16 14:49:42 +0000
commit4cc0d38a328a029d5eb541932ae859980cd8e182 (patch)
tree87e6bfe123651cffe07431b436a457e37114ac9f /etc
parentd09641af6ef39543bde639f391febf533ad1a732 (diff)
downloadpfsense-4cc0d38a328a029d5eb541932ae859980cd8e182.zip
pfsense-4cc0d38a328a029d5eb541932ae859980cd8e182.tar.gz
Re-enable the log_error when a command fails.
This function accepts a mute flag of false or true. Please use it.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 219da0c..3ef01fc 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -423,7 +423,7 @@ function mwexec($command, $mute = false) {
$mute = false;
if(($retval <> 0) && ($mute === false)) {
$output = implode(" ", $oarr);
- //log_error("The command '$command' returned exit code '$retval', the output was '$output' ");
+ log_error("The command '$command' returned exit code '$retval', the output was '$output' ");
}
return $retval;
}
@@ -676,4 +676,4 @@ function format_bytes($bytes) {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud