From 4cc0d38a328a029d5eb541932ae859980cd8e182 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Fri, 16 Jan 2009 14:49:42 +0000 Subject: Re-enable the log_error when a command fails. This function accepts a mute flag of false or true. Please use it. --- etc/inc/util.inc | 4 ++-- 1 file 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 +?> -- cgit v1.1