diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 14:49:42 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 14:49:42 +0000 |
commit | 4cc0d38a328a029d5eb541932ae859980cd8e182 (patch) | |
tree | 87e6bfe123651cffe07431b436a457e37114ac9f /etc/inc/util.inc | |
parent | d09641af6ef39543bde639f391febf533ad1a732 (diff) | |
download | pfsense-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/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 4 |
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 +?> |