diff options
author | Warren Baker <warren@decoy.co.za> | 2010-12-02 19:01:27 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2010-12-02 19:01:27 +0200 |
commit | d589cccf66d7e876e576f894e2599ac5bf9e0cd9 (patch) | |
tree | 535beaa022395b94bdc294310ec43dd17a93779e /etc/inc/system.inc | |
parent | eeb52fea1028126cc9150810b63fd0c8a8a0b24b (diff) | |
download | pfsense-d589cccf66d7e876e576f894e2599ac5bf9e0cd9.zip pfsense-d589cccf66d7e876e576f894e2599ac5bf9e0cd9.tar.gz |
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.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 1 insertions, 3 deletions
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"; } |