Skip to content

Commit

Permalink
Add log to UploadToLinuxPackageRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
William Li committed Sep 1, 2017
1 parent f4f5100 commit 8b8aef7
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ private async Task<string> UploadAndAddpackageAndEnsureItIsReady()
{
try
{
Log.LogMessage(
MessageImportance.High,
"Begin uploading Linux Package to feed service, RepositoryId {0}, Server {1}, Package to upload {2}.",
RepositoryId,
Server,
PathOfPackageToUpload);

var linuxPackageRepositoryDestiny =
new LinuxPackageRepositoryDestiny(Username, Password, Server, RepositoryId);
var uploadResponse = await new LinuxPackageRepositoryHttpPrepare(
Expand Down Expand Up @@ -93,6 +100,12 @@ await ExponentialRetry.ExecuteWithRetry(
5,
() => ExponentialRetry.Timer(ExponentialRetry.Intervals),
$"PullQueuedPackageStatus location: {queueResourceLocation.Location}");

Log.LogMessage(
MessageImportance.High,
"Upload to feed service is completed, queue resource location {0}",
queueResourceLocation.Location);

return "";
}
catch (FailedToAddPackageToPackageRepositoryException e)
Expand Down

0 comments on commit 8b8aef7

Please sign in to comment.