Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Nov 11, 2024
1 parent a3e7618 commit 8fe68d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/FMBot.Subscriptions/Services/DiscordSkuService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ public async Task SendVoiceMessage(string audioUrl, string interactionToken)

var response = await _client.SendAsync(request);

var stream = await response.Content.ReadAsStreamAsync();
using var streamReader = new StreamReader(stream);
var requestBody = await streamReader.ReadToEndAsync();

if (!response.IsSuccessStatusCode)
{
Log.Information("error in music preview {requestBody}", requestBody);
}

response.EnsureSuccessStatusCode();
}

Expand Down

0 comments on commit 8fe68d9

Please sign in to comment.