Skip to content

Commit 34cb9e4

Browse files
committed
add email notification subject and body to log
1 parent 0b299b9 commit 34cb9e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceControl/Notifications/Email/SendEmailNotificationHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public async Task Handle(SendEmailNotification message, IMessageHandlerContext c
3232
notifications = await manager.LoadSettings(cacheTimeout);
3333
}
3434

35+
logger.LogInformation("Processing email notification. Subject: {Subject}, Body: {Body}", message.Subject, message.Body);
36+
3537
if (notifications == null || !notifications.Email.Enabled)
3638
{
3739
logger.LogInformation("Skipping email sending. Notifications turned-off");

0 commit comments

Comments
 (0)