Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Remove debug lines, initial release fr
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jun 21, 2023
1 parent 48e2123 commit 4216deb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions TWShockLink/API/ShockLinkAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@ public static async Task Control(params Control[] data)
try
{
var messageString = JsonConvert.SerializeObject(data, Formatting.None);
Logger.Msg(messageString);

var message = new HttpRequestMessage(HttpMethod.Post, "/1/shockers/control");
message.Content = new StringContent(messageString, Encoding.UTF8, "application/json");

var result = await _client.SendAsync(message);
if (!result.IsSuccessStatusCode)
{
Logger.Msg(result.StatusCode);
Logger.Msg(await result.Content.ReadAsStringAsync());
Logger.Error(result.StatusCode);
Logger.Error(await result.Content.ReadAsStringAsync());
}

}
Expand Down

0 comments on commit 4216deb

Please sign in to comment.