]> dxcluster.org Git - spider.git/commitdiff
add in and out to filter debugging
authorminima <minima>
Fri, 15 Jun 2001 11:38:09 +0000 (11:38 +0000)
committerminima <minima>
Fri, 15 Jun 2001 11:38:09 +0000 (11:38 +0000)
perl/Filter.pm

index 5f6b9bf17af397b23cbe6fd98ae2cc3f438df5fd..676cef2b61a12c5c96cb7e956e1ab0a3a8891627 100644 (file)
@@ -89,7 +89,7 @@ sub compile
                if ($@) {
                        my $sort = $ref->{sort};
                        my $name = $ref->{name};
-                       dbg("Error compiling $ar $sort $name: $@") if isdbg('err');
+                       dbg("Error compiling $ar $sort $name: $@");
                        Log('err', "Error compiling $ar $sort $name: $@");
                }
                $rr = $@;
@@ -222,8 +222,10 @@ sub it
                my $args = join '\',\'', @_;
                my $true = $r ? "OK" : "REJ";
                my $sort = $self->{sort};
+               my $dir = $self->{name} ~= /^in_/i ? "IN " : "OUT";
+               
                $hops ||= "none";
-               dbg("Filter: $type/$sort with $asc on '$args': $true hops: $hops") if isdbg('filter');
+               dbg("$dir: $type/$sort with $asc on '$args': $true hops: $hops") if isdbg('filter');
        }
        return ($r, $hops);
 }