Ignore:
Timestamp:
Jan 4, 2017, 12:36:59 AM (7 years ago)
Author:
Bruno Cornec
Message:

Improve logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2155 r2161  
    748748my $pbos = shift;
    749749my @keys = @_;
    750 my $ldebug = $pbdebug;
    751750
    752751if ($#keys == -1) {
     
    754753    pb_log(0,"================================================\n");
    755754    @keys = pb_conf_get_all();
    756     $ldebug = 1;
    757755}
    758756if (defined $ENV{'PBV'}) {
    759     pb_log(0,"Distribution $ENV{'PBV'}\n");
    760     pb_log(0,"========================\n");
     757    pb_log(1,"Distribution $ENV{'PBV'}\n");
     758    pb_log(1,"========================\n");
    761759} else {
    762     pb_log(0,"Local Distribution\n");
    763     pb_log(0,"==================\n");
     760    pb_log(1,"Local Distribution\n");
     761    pb_log(1,"==================\n");
    764762}
    765763
     
    779777}
    780778foreach my $r (keys %rep) {
    781     print "$r => " if (defined $ldebug);
    782     print "$rep{$r}\n";
     779    pb_log(1, "$r => ");
     780    pb_log(0, "$rep{$r}\n");
    783781}
    784782}
Note: See TracChangeset for help on using the changeset viewer.