summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-11 04:01:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-11 04:01:43 +0000
commit2d29214cd1d98b5f8fb0cea7be7824836ba977f0 (patch)
tree6499d87a24e61d444ec73115c8e92e2ec43301db /usr
parent5409f9c4e5acbe9de61a8791f21f7a8d8b21caa0 (diff)
downloadpfsense-2d29214cd1d98b5f8fb0cea7be7824836ba977f0.zip
pfsense-2d29214cd1d98b5f8fb0cea7be7824836ba977f0.tar.gz
Allow clogging capabilities to be turned off.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 8670874..2208f02 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -639,7 +639,10 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert
if(is_array($grepinvert))
foreach($grepinvert as $agrep)
$grepline .= " | grep -v \"$agrep\"";
- exec("/usr/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
+ if($config['system']['disablesyslogclog'])
+ exec("cat {$logfile}{$grepline} | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
+ else
+ exec("/usr/sbin/clog {$logfile}{$grepline} | grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
/* comment out debug code
echo "<!-- /usr/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail} -->";
*/
@@ -672,7 +675,10 @@ function return_clog($logfile, $tail, $grepfor = "", $grepinvert = "", $grepreve
/* comment out debug code
echo "<!-- /usr/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail} -->";
*/
- exec("/usr/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
+ if($config['system']['disablesyslogclog'])
+ exec("cat {$logfile}{$grepline} | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
+ else
+ exec("/usr/sbin/clog {$logfile}{$grepline} | grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
return($logarr);
}
@@ -823,5 +829,4 @@ function display_widget_tabs(& $tab_array) {
echo "</div>";
}
-
?> \ No newline at end of file
OpenPOWER on IntegriCloud