diff --git a/MessagingService.BusinessLogic/Services/EmailServices/IntegrationTest/IntegrationTestEmailServiceProxy.cs b/MessagingService.BusinessLogic/Services/EmailServices/IntegrationTest/IntegrationTestEmailServiceProxy.cs
index 1bdce22..c676bdb 100644
--- a/MessagingService.BusinessLogic/Services/EmailServices/IntegrationTest/IntegrationTestEmailServiceProxy.cs
+++ b/MessagingService.BusinessLogic/Services/EmailServices/IntegrationTest/IntegrationTestEmailServiceProxy.cs
@@ -17,7 +17,12 @@ public class IntegrationTestEmailServiceProxy : IEmailServiceProxy
///
/// Sends the email.
///
- /// The request.
+ /// The message identifier.
+ /// From address.
+ /// To addresses.
+ /// The subject.
+ /// The body.
+ /// if set to true [is HTML].
/// The cancellation token.
///
public async Task SendEmail(Guid messageId,
diff --git a/MessagingService.BusinessLogic/Services/EmailServices/Smtp2Go/Smtp2GoProxy.cs b/MessagingService.BusinessLogic/Services/EmailServices/Smtp2Go/Smtp2GoProxy.cs
index 9aa4432..f97fb69 100644
--- a/MessagingService.BusinessLogic/Services/EmailServices/Smtp2Go/Smtp2GoProxy.cs
+++ b/MessagingService.BusinessLogic/Services/EmailServices/Smtp2Go/Smtp2GoProxy.cs
@@ -9,6 +9,7 @@
using Newtonsoft.Json;
using Service.Services.Email.Smtp2Go;
using Shared.General;
+ using Shared.Logger;
///
///
@@ -74,6 +75,9 @@ public async Task SendEmail(Guid messageId,
};
String requestSerialised = JsonConvert.SerializeObject(apiRequest);
+
+ Logger.LogDebug($"Request Message Sent to Email Provider [SMTP2Go] {requestSerialised}");
+
StringContent content = new StringContent(requestSerialised, Encoding.UTF8, "application/json");
using(HttpClient client = new HttpClient())
@@ -84,6 +88,8 @@ public async Task SendEmail(Guid messageId,
Smtp2GoSendEmailResponse apiResponse = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync());
+ Logger.LogDebug($"Response Message Received from Email Provider [SMTP2Go] {JsonConvert.SerializeObject(apiResponse)}");
+
// Translate the Response
response = new EmailServiceProxyResponse
{
diff --git a/MessagingService/appsettings.Development.json b/MessagingService/appsettings.Development.json
index 3e34132..a7c4037 100644
--- a/MessagingService/appsettings.Development.json
+++ b/MessagingService/appsettings.Development.json
@@ -1,9 +1,9 @@
{
"Logging": {
"LogLevel": {
- "Default": "Information",
- "Microsoft": "Warning",
- "Microsoft.Hosting.Lifetime": "Information"
+ "Default": "Debug",
+ "Microsoft": "Debug",
+ "Microsoft.Hosting.Lifetime": "Debug"
}
},
"EventStoreSettings": {