]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Just some cosmetic changes to redirector
authormaniacikarus <maniacikarus@ipfire.org>
Tue, 27 Jan 2009 20:51:23 +0000 (21:51 +0100)
committermaniacikarus <maniacikarus@ipfire.org>
Tue, 27 Jan 2009 20:51:23 +0000 (21:51 +0100)
config/urlfilter/redirect_wrapper

index e4d68adb90dcba58643bb938008770fe0da58fb4..c3bbf7c9f45ff7549abed98768b729a9dfc24601 100644 (file)
@@ -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;
                                }
                        }