Skip to content

Commit

Permalink
chore: debugging CHES email error
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Oct 22, 2024
1 parent 4815601 commit 39e8c72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/StrDss.Service/EmailMessageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public async Task<string> SendEmailAsync(EmailContent emailContent)
}

var jsonContent = emailContent.ToString();

_logger.LogDebug($"CHES: {jsonContent}");

var httpContent = new StringContent(jsonContent, Encoding.UTF8, "application/json");

var response = await _httpClient.PostAsync($"{chesUrl}/api/v1/email", httpContent);
Expand Down

0 comments on commit 39e8c72

Please sign in to comment.