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

Commit 3759cc2

Browse files
author
Jérémie Bertrand
committed
Log request body
1 parent e704232 commit 3759cc2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SemanticReleaseNotesParser/BuildServers/AppVeyor.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ public bool CanApplyToCurrentContext()
2626
public void SetEnvironmentVariable(string variable, string value)
2727
{
2828
Logger.Debug("AppVeyor API Url: {0}", _appVeyorApiUrl);
29-
Logger.Debug("Variable value: {0}", value);
29+
var request = string.Format(SetEnvironmentVariableRequest, variable, value);
30+
Logger.Debug("Request body: {0}", value);
3031

3132
using (var webClient = _webClientFactory.Create(_appVeyorApiUrl))
3233
{
33-
webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(string.Format(SetEnvironmentVariableRequest, variable, value)));
34+
webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(request));
3435
Logger.Info("Adding AppVeyor environment variable: {0}.", variable);
3536
}
3637
}

0 commit comments

Comments
 (0)