Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Log request body
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémie Bertrand committed Feb 24, 2015
1 parent e704232 commit 3759cc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SemanticReleaseNotesParser/BuildServers/AppVeyor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ public bool CanApplyToCurrentContext()
public void SetEnvironmentVariable(string variable, string value)
{
Logger.Debug("AppVeyor API Url: {0}", _appVeyorApiUrl);
Logger.Debug("Variable value: {0}", value);
var request = string.Format(SetEnvironmentVariableRequest, variable, value);
Logger.Debug("Request body: {0}", value);

using (var webClient = _webClientFactory.Create(_appVeyorApiUrl))
{
webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(string.Format(SetEnvironmentVariableRequest, variable, value)));
webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(request));
Logger.Info("Adding AppVeyor environment variable: {0}.", variable);
}
}
Expand Down

0 comments on commit 3759cc2

Please sign in to comment.