Skip to content

Commit

Permalink
fix: add logging of magda response when not successful
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Dec 5, 2023
1 parent 1bdb3d5 commit aa0273f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AssociationRegistry.Magda/MagdaFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ private HttpClient GetMagdaHttpClient(X509Certificate? magdaClientCertificate)

if (!response.IsSuccessStatusCode)
{
_logger.LogWarning("GeefOnderneming response not successful: {@Result}", response);
_logger.LogWarning(message: "GeefOnderneming response not successful: \n{@Result}\n{@Content}", response,
await response.Content.ReadAsStringAsync());

return null;
}

Expand Down

0 comments on commit aa0273f

Please sign in to comment.