Add log to UploadToLinuxPackageRepository
This commit is contained in:
parent
f4f5100af1
commit
8b8aef7e44
1 changed files with 13 additions and 0 deletions
|
@ -65,6 +65,13 @@ namespace Microsoft.DotNet.Cli.Build.UploadToLinuxPackageRepository
|
||||||
{
|
{
|
||||||
try
|
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 =
|
var linuxPackageRepositoryDestiny =
|
||||||
new LinuxPackageRepositoryDestiny(Username, Password, Server, RepositoryId);
|
new LinuxPackageRepositoryDestiny(Username, Password, Server, RepositoryId);
|
||||||
var uploadResponse = await new LinuxPackageRepositoryHttpPrepare(
|
var uploadResponse = await new LinuxPackageRepositoryHttpPrepare(
|
||||||
|
@ -93,6 +100,12 @@ namespace Microsoft.DotNet.Cli.Build.UploadToLinuxPackageRepository
|
||||||
5,
|
5,
|
||||||
() => ExponentialRetry.Timer(ExponentialRetry.Intervals),
|
() => ExponentialRetry.Timer(ExponentialRetry.Intervals),
|
||||||
$"PullQueuedPackageStatus location: {queueResourceLocation.Location}");
|
$"PullQueuedPackageStatus location: {queueResourceLocation.Location}");
|
||||||
|
|
||||||
|
Log.LogMessage(
|
||||||
|
MessageImportance.High,
|
||||||
|
"Upload to feed service is completed, queue resource location {0}",
|
||||||
|
queueResourceLocation.Location);
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
catch (FailedToAddPackageToPackageRepositoryException e)
|
catch (FailedToAddPackageToPackageRepositoryException e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue