IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35478


Ignore:
Timestamp:
May 2, 2013, 11:37:59 AM (13 years ago)
Author:
bills
Message:

reduce verbosity in publish log files by clearing verbose when
calling ipp tools. Add option to enable the verbosity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130307/ippScripts/scripts/publish_file.pl

    r35239 r35478  
    4444# Parse the command-line arguments
    4545my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir, $need_magic );
    46 my ( $dbname, $verbose, $no_update, $no_op, $save_temps, $redirect );
     46my ( $dbname, $verbose, $very_verbose, $no_update, $no_op, $save_temps, $redirect );
    4747my ( $output_format, $difftype );
    4848
     
    5858    'dbname=s'          => \$dbname,    # Database name
    5959    'verbose'           => \$verbose,   # Print to stdout
     60    'very-verbose'      => \$very_verbose, # Print even more to stdout
    6061    'no-update'         => \$no_update, # Don't update the database?
    6162    'no-op'             => \$no_op, # Don't do any operations
     
    9899    $command .= " -dbname $dbname" if defined $dbname;
    99100    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    100         run(command => $command, verbose => $verbose);
     101        run(command => $command, verbose => $very_verbose);
    101102    &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $success;
    102103
     
    158159    $command .= " -dbname $dbname" if defined $dbname;
    159160    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    160         run(command => $command, verbose => $verbose);
     161        run(command => $command, verbose => $very_verbose);
    161162    &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $success;
    162163
     
    206207        $cam_command .= " -dbname $dbname" if defined $dbname;
    207208        my ( $cam_success, $cam_error_code, $cam_full_buf, $cam_stdout_buf, $cam_stderr_buf ) =
    208             run(command => $cam_command, verbose => $verbose);
     209            run(command => $cam_command, verbose => $very_verbose);
    209210        &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $cam_success;
    210211        my $cam_metadata = $mdcParser->parse(join "", @$cam_stdout_buf) or
     
    220221        $reg_command .= " -dbname $dbname" if defined $dbname;
    221222        my ( $reg_success, $reg_error_code, $reg_full_buf, $reg_stdout_buf, $reg_stderr_buf ) =
    222             run(command => $reg_command, verbose => $verbose);
     223            run(command => $reg_command, verbose => $very_verbose);
    223224        &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $reg_success;
    224225        my $reg_metadata = $mdcParser->parse(join "", @$reg_stdout_buf) or
     
    328329
    329330unless ($no_update) {
    330     my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --copy --abspath --product $product --type $dsType --list $dsFileName";
     331    my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --link --abspath --product $product --type $dsType --list $dsFileName";
    331332    $command .= " --ps0 \"$comment\"" if defined $comment;
    332333    $command .= " --ps1 \"$exp_name_1\"" if defined $exp_name_1;
Note: See TracChangeset for help on using the changeset viewer.