From: maniacikarus Date: Tue, 27 Jan 2009 20:51:23 +0000 (+0100) Subject: Just some cosmetic changes to redirector X-Git-Tag: v2.5-beta1~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ce08b2a9a258b8c2954b6e1b6e71443aa5a1b87;p=ipfire-2.x.git Just some cosmetic changes to redirector --- diff --git a/config/urlfilter/redirect_wrapper b/config/urlfilter/redirect_wrapper index e4d68adb90..c3bbf7c9f4 100644 --- a/config/urlfilter/redirect_wrapper +++ b/config/urlfilter/redirect_wrapper @@ -86,7 +86,7 @@ while($line = <>) { $return = $rlist->[$i]->getline; if ( $return eq "Processing file and database" ){ - writetolog("Emergency - squidGuard not initialised please run squidGuard -C all"); + system("logger -t ipfire 'Emergency - squidGuard not initialised please run squidGuard -C all'"); } if ($debug){ @@ -102,7 +102,9 @@ while($line = <>) { # break if redirector changes data if($return ne "\n" and $return ne $line ){ if ( $redirectors->[$i] ne "/usr/sbin/updxlrator"){ - writetolog($redirectors->[$i]." is stopping querry because block was found."); + if ($debug){ + writetolog($redirectors->[$i]." is stopping querry because block was found."); + } $i = @$redirectors; } }