diff --git a/src/SFA.DAS.Notifications.Application/Commands/DispatchNotification/DispatchNotificationCommandHandler.cs b/src/SFA.DAS.Notifications.Application/Commands/DispatchNotification/DispatchNotificationCommandHandler.cs index 6ea00b34..4ba85fca 100644 --- a/src/SFA.DAS.Notifications.Application/Commands/DispatchNotification/DispatchNotificationCommandHandler.cs +++ b/src/SFA.DAS.Notifications.Application/Commands/DispatchNotification/DispatchNotificationCommandHandler.cs @@ -65,6 +65,7 @@ await _emailService.SendAsync(new EmailMessage catch (Exception ex) { await _notificationsRepository.Update(command.Format, command.MessageId, NotificationStatus.Failed); + Logger.Warn(ex, $"Error sending email. MessageId: {command.MessageId}"); var httpException = ex as HttpException;