From d589cccf66d7e876e576f894e2599ac5bf9e0cd9 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Thu, 2 Dec 2010 19:01:27 +0200 Subject: If a pkg has logging enabled in syslog, then correctly ensure that it does not get logged to one of the other logs but only to its specified log file. --- etc/inc/system.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc/inc/system.inc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index f949c3b..f249256 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -454,9 +454,7 @@ function system_syslogd_start() { if($config['installedpackages']['package']) { foreach($config['installedpackages']['package'] as $package) { if($package['logging']) { - $pkgfacilities[] = $package['logging']['facilityname']; - $separatelogfacilities = $separatelogfacilities + $pkgfacilities; - $facilitylist = implode(',', $pkgfacilities); + array_push($separatelogfacilities, $package['logging']['facilityname']); mwexec("{$log_create_directive} 10240 {$g['varlog_path']}/{$package['logging']['logfilename']}"); $syslogconf .= "!{$package['logging']['facilityname']}\n*.*\t\t\t\t\t\t {$log_directive}{$g['varlog_path']}/{$package['logging']['logfilename']}\n"; } -- cgit v1.1