Changeset 3402


Ignore:
Timestamp:
2002-08-26T16:26:56+12:00 (22 years ago)
Author:
sjboddie
Message:

import.pl now tells user where the fail.log lives

Location:
trunk/gsdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/import.pl

    r3085 r3402  
    144144    }
    145145    open (FAILLOG, ">$faillog") || die "Couldn't open fail log $faillog\n";
     146    my $faillogname = $faillog;
    146147    $faillog = 'import::FAILLOG';
    147148    $faillog->autoflush(1);
     
    304305    print $out "*********************************************\n";
    305306
    306     &plugin::write_stats($pluginfo, $statsfile);
     307    &plugin::write_stats($pluginfo, $statsfile, $faillogname);
    307308    if ($close_stats) {
    308309    close STATS;
  • trunk/gsdl/perllib/plugin.pm

    r2797 r3402  
    117117# are only output after import.pl -
    118118sub write_stats {
    119     my ($pluginfo, $statshandle) = @_;
     119    my ($pluginfo, $statshandle, $faillog) = @_;
    120120
    121121    foreach $plugobj (@$pluginfo) {
     
    148148        print $statshandle "* " . $stats->{'num_not_processed'} . " were rejected.";
    149149    }
    150     print $statshandle " See the fail log for a list of rejected documents\n";
     150    print $statshandle " See $faillog for a list of rejected documents\n";
    151151    }
    152152}
Note: See TracChangeset for help on using the changeset viewer.