Skip to content

Commit

Permalink
add failure logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 31, 2024
1 parent 6a4e5e1 commit 8d3c26b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Moonglade.Pingback/PingbackSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ private async Task SendAsync(Uri sourceUrl, Uri targetUrl)
if (successUrlCreation)
{
var pResponse = await requestor.Send(sourceUrl, targetUrl, url);

if (!pResponse.IsSuccessStatusCode)
{
logger.LogError($"Ping request failed: {pResponse.StatusCode}");
}
}
else
{
Expand Down

0 comments on commit 8d3c26b

Please sign in to comment.