Skip to content

Commit

Permalink
Merge pull request #1290 from jamill/upgrade_fix
Browse files Browse the repository at this point in the history
Upgrader: NuGet Upgrader should use GitHub endpoint for notifications
  • Loading branch information
jamill authored Jun 20, 2019
2 parents 139600c + 9a67103 commit 9adf10c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions GVFS/GVFS.Service/ProductUpgradeTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,22 @@ private void TimerCallback(object unusedState)
return;
}
}

errorMessage = string.Format(
"{0}.{1}: Configured Product Upgrader does not support anonymous version queries.",
nameof(ProductUpgradeTimer),
nameof(this.TimerCallback),
errorMessage);

activity.RelatedWarning(
metadata: new EventMetadata(),
message: errorMessage,
keywords: Keywords.Telemetry);

info.RecordHighestAvailableVersion(highestAvailableVersion: null);
return;
else
{
errorMessage = string.Format(
"{0}.{1}: Configured Product Upgrader does not support anonymous version queries.",
nameof(ProductUpgradeTimer),
nameof(this.TimerCallback),
errorMessage);

activity.RelatedWarning(
metadata: new EventMetadata(),
message: errorMessage,
keywords: Keywords.Telemetry);

info.RecordHighestAvailableVersion(highestAvailableVersion: null);
return;
}
}

InstallerPreRunChecker prerunChecker = new InstallerPreRunChecker(this.tracer, string.Empty);
Expand Down

0 comments on commit 9adf10c

Please sign in to comment.