diff --git a/src/Jobs/Recruit.Vacancies.Jobs/Communication/CommunicationMessageDispatcher.cs b/src/Jobs/Recruit.Vacancies.Jobs/Communication/CommunicationMessageDispatcher.cs index c494c1f7fb..acb4aaeb1a 100644 --- a/src/Jobs/Recruit.Vacancies.Jobs/Communication/CommunicationMessageDispatcher.cs +++ b/src/Jobs/Recruit.Vacancies.Jobs/Communication/CommunicationMessageDispatcher.cs @@ -74,7 +74,7 @@ public async Task Run(CommunicationMessageIdentifier commMsgId) public async Task SendEmail(CommunicationMessage request) { - _logger.LogInformation($"Trying to send message of type {request.RequestType} to {request.Recipient.Email}"); + _logger.LogInformation($"Trying to send message of type {request.RequestType} to {request.Recipient.UserId}"); var email = new Email { @@ -91,7 +91,7 @@ public async Task SendEmail(CommunicationMessage request) await _retryPolicy.ExecuteAsync(context => _dasNotifyClient.SendEmail(email), new Context(nameof(SendEmail))); - _logger.LogInformation($"Successfully sent message of type {request.RequestType} to {request.Recipient.Email}"); + _logger.LogInformation($"Successfully sent message of type {request.RequestType} to {request.Recipient.UserId}"); } private RetryPolicy GetRetryPolicy() diff --git a/src/Shared/Recruit.Vacancies.Client/Application/CommandHandlers/GeocodeVacancyCommandHandler.cs b/src/Shared/Recruit.Vacancies.Client/Application/CommandHandlers/GeocodeVacancyCommandHandler.cs index 765f954be6..585f4407e9 100644 --- a/src/Shared/Recruit.Vacancies.Client/Application/CommandHandlers/GeocodeVacancyCommandHandler.cs +++ b/src/Shared/Recruit.Vacancies.Client/Application/CommandHandlers/GeocodeVacancyCommandHandler.cs @@ -49,7 +49,7 @@ public async Task Handle(GeocodeVacancyCommand message, CancellationToken cancel } private Task GeocodePostcodeAsync(Vacancy vacancy) - { + { _logger.LogInformation("Attempting to geocode postcode:'{postcode}' for vacancyId:'{vacancyId}'", vacancy.EmployerLocation.Postcode, vacancy.Id); var geocodeService = _geocodeServiceFactory.GetGeocodeService();