IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27244


Ignore:
Timestamp:
Mar 10, 2010, 5:25:28 PM (16 years ago)
Author:
Paul Price
Message:

Better error handling on bad log names, and fix log name for magic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/errors.pl

    r27243 r27244  
    5757    $table = "warpSkyfile";
    5858} elsif ($stage eq "magic") {
    59     $sql = "SELECT magic_id, node, 'unknown' AS hostname, CONCAT(workdir, '.', node) FROM magicRun JOIN magicNodeResult USING(magic_id) WHERE magicNodeResult.fault != 0";
     59    $sql = "SELECT magic_id, node, 'unknown' AS hostname, CONCAT(workdir, '/', exp_id, '/', exp_id, '.', node) FROM magicRun JOIN magicNodeResult USING(magic_id) WHERE magicNodeResult.fault != 0";
    6060    $table = "magicNodeResult";
    6161} else {
     
    102102    if ($log =~ /^neb:/) {
    103103        my $new = eval { $neb->find($log); };
    104         $bad{$name} = $log unless $new;
     104        unless ($new) {
     105            $bad{$name} = $log;
     106            next;
     107        }
    105108        $log = $new;
    106109    }
     
    108111    my $file;                   # Log file
    109112    open $file, $log;
     113    unless ($file) {
     114        $bad{$name} = $log;
     115        next;
     116    }
    110117    my @log = <$file>;          # Contents of log file
    111118    close $file;
Note: See TracChangeset for help on using the changeset viewer.