IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39797


Ignore:
Timestamp:
Oct 31, 2016, 5:26:17 PM (10 years ago)
Author:
watersc1
Message:

Added option to save log into nebulous. When running at a higher
volume, the default of just dumping into the pantasks logs isn't going
to be feasible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/rawcheck.pl

    r39796 r39797  
    2222
    2323
    24 my ($server,$dbname,$exp_id,$do_cull);
     24my ($server,$dbname,$exp_id,$do_cull,$save_log);
    2525
    2626$server = $ENV{'NEB_SERVER'} unless $server;
     
    3030    'dbname=s'       => \$dbname,
    3131    'exp_id|x=s'     => \$exp_id,
     32    'save_log'       => \$save_log
    3233    'cull'           => \$do_cull,
    3334) || pod2usage( 2 );
     
    4546pod2usage( -msg => "missing key", exitval => 2 )
    4647    unless defined $exp_id;
     48
     49if ($save_log) {
     50    my $time = time();
     51    my $logDest = "neb://any/raw_check/exp_${exp_id}.${time}";
     52    my $ipprc = PS::IPP::Config->new( "GPC1" ) or die "Could not create config object.\n";
     53    $ipprc->redirect_output($logDest) or die "Could not redirect output to logfile ${logDest}\n";
     54}
    4755
    4856# Global options:
Note: See TracChangeset for help on using the changeset viewer.