aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorcrocomo <crocomo@btree.de>2014-02-23 20:40:03 +0100
committercrocomo <crocomo@btree.de>2014-02-23 20:40:03 +0100
commit2f3f6ecaa9ef5cae9160d1071a80f4f26938d9ed (patch)
treee8fbb9d3b73074600c08b46fa222ac958ae0c701 /config
parent9b93a51db647450f975dfb60ebab1e7e4d5a6951 (diff)
downloadpfsense-packages-2f3f6ecaa9ef5cae9160d1071a80f4f26938d9ed.tar.gz
pfsense-packages-2f3f6ecaa9ef5cae9160d1071a80f4f26938d9ed.tar.bz2
pfsense-packages-2f3f6ecaa9ef5cae9160d1071a80f4f26938d9ed.zip
Fix logging facilities
Include 'named' in the list of $separatelogfacilities in system.inc so that messages ONLY show up in resolver.log (and not system.log as well).
Diffstat (limited to 'config')
-rw-r--r--config/bind/bind.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc
index 40d626db..1818b225 100644
--- a/config/bind/bind.inc
+++ b/config/bind/bind.inc
@@ -209,8 +209,9 @@ EOD;
$restart_syslog=0;
foreach ($syslog_files as $syslog_file){
$syslog_file_data=file_get_contents($syslog_file);
- if (!preg_match("/dnsmasq,named,filterdns/",$syslog_file_data)){
+ if ( !preg_match("/dnsmasq,named,filterdns/",$syslog_file_data) || !preg_match("/'dnsmasq','named','filterdns'/",$syslog_file_data) ) {
$syslog_file_data=preg_replace("/dnsmasq,filterdns/","dnsmasq,named,filterdns",$syslog_file_data);
+ $syslog_file_data=preg_replace("/'dnsmasq','filterdns'/","'dnsmasq','named','filterdns'",$syslog_file_data);
file_put_contents($syslog_file,$syslog_file_data);
$restart_syslog++;
}