Changeset 36060


Ignore:
Timestamp:
2022-02-21T13:21:24+13:00 (2 years ago)
Author:
kjdon
Message:

only output the comment about setting site to localsite if verbosity > 3. We don't want it when eg we are printing out the xml list of options, as its prevents teh output from being parsed.

Location:
main/trunk/greenstone2/bin/script
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/activate.pl

    r35289 r36060  
    191191        if (!defined $site || $site eq "") {
    192192        $site = "localsite";
    193         print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n";
     193        print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n" if $default_verbosity > 3;
    194194        }
    195195    }
  • main/trunk/greenstone2/bin/script/buildcol.pl

    r35289 r36060  
    362362            if (!defined $buildcolutils->{'site'} || $buildcolutils->{'site'} eq "") {
    363363                $buildcolutils->{'site'} = "localsite";
    364         print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n";
     364        print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n" if ($buildcolutils->{'verbosity'} && $buildcolutils->{'verbosity'} > 3);
    365365            }       
    366366  }
  • main/trunk/greenstone2/bin/script/import.pl

    r35289 r36060  
    234234        if (!defined $inexport->{'site'} || $inexport->{'site'} eq "") {
    235235        $inexport->{'site'} = "localsite";
    236         print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n";
     236        print STDOUT "setting site to localsite as GSDL3SRCHOME was set\n" if $inexport->{'verbosity'} > 3;
    237237        }
    238238  }
Note: See TracChangeset for help on using the changeset viewer.