IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2008, 10:56:20 AM (18 years ago)
Author:
jhoblitt
Message:

re-enable record filtering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/arclog/arclog_readdb.pl

    r17273 r17274  
    1919pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2020
     21my $filter_records = 1;
     22
    2123my $rcfile = "$ENV{HOME}/.arclogrc";
    2224$rcfile = File::Spec->canonpath($rcfile);
     
    3739my @myfilters;
    3840foreach my $filter (@{$c->get_event_filters}) {
    39 #    push @myfilters, qr/$filter/;
     41    push @myfilters, qr/$filter/;
    4042}
    4143
     
    6264
    6365    # do not print filtered records
    64     foreach my $filter (@myfilters) {
    65         next RECORDS if $event =~ /$filter/;
     66    if (defined $filter_records) {
     67        foreach my $filter (@myfilters) {
     68            next RECORDS if $event =~ /$filter/;
     69        }
    6670    }
    6771
Note: See TracChangeset for help on using the changeset viewer.