Skip to content

Commit

Permalink
[backend] log publish flavor
Browse files Browse the repository at this point in the history
Also change log time format to iso.
  • Loading branch information
mlschroe committed Jul 18, 2016
1 parent d22b363 commit 70c03c9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -1274,11 +1274,17 @@ sub deleterepo {
rmdir("$reporoot/$prp");
}

my $publishflavor;

sub publish {
my ($projid, $repoid, $dbgsplit, $dbgpacktrack) = @_;
my $prp = "$projid/$repoid";

print localtime(time)." publishing $prp\n";
if ($publishflavor) {
print BSUtil::isotime().": publishing $prp [$publishflavor]\n";
} else {
print BSUtil::isotime().": publishing $prp\n";
}

# get info from source server about this project/repository
# we specify "withsrcmd5" so that we get the patternmd5. It still
Expand Down Expand Up @@ -2273,6 +2279,7 @@ sub publishevent {
}

notify_state($projid, $repoid, 'publishing');
$publishflavor = $req->{'flavor'};
eval {
publish($projid, $repoid);
};
Expand Down

0 comments on commit 70c03c9

Please sign in to comment.