X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FFilter.pm;h=031ec92669a6cd200729d40ddef70d9e58d92e15;hb=27a5024df2116aeca11014d767fdb5f027d89b07;hp=5f6b9bf17af397b23cbe6fd98ae2cc3f438df5fd;hpb=101516b420ac77cd9eb8294651104e43f3461c06;p=spider.git diff --git a/perl/Filter.pm b/perl/Filter.pm index 5f6b9bf1..031ec926 100644 --- a/perl/Filter.pm +++ b/perl/Filter.pm @@ -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 = $@; @@ -220,10 +220,12 @@ sub it if (isdbg('filter')) { my $args = join '\',\'', @_; - my $true = $r ? "OK" : "REJ"; + my $true = $r ? "OK " : "REJ"; my $sort = $self->{sort}; - $hops ||= "none"; - dbg("Filter: $type/$sort with $asc on '$args': $true hops: $hops") if isdbg('filter'); + my $dir = $self->{name} =~ /^in_/i ? "IN " : "OUT"; + + my $h = $hops || ''; + dbg("$true $dir: $type/$sort with $asc on '$args' $h") if isdbg('filter'); } return ($r, $hops); }