Skip to content

Commit

Permalink
Remove personal information from log entries - Recruitment (#849) +se…
Browse files Browse the repository at this point in the history
…mver: patch
  • Loading branch information
VasanthaKasirajan3008 authored and shomavg committed Nov 22, 2019
1 parent 8f080ab commit a900069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task Handle(GeocodeVacancyCommand message, CancellationToken cancel
}

private Task<Geocode> GeocodePostcodeAsync(Vacancy vacancy)
{
{
_logger.LogInformation("Attempting to geocode postcode:'{postcode}' for vacancyId:'{vacancyId}'", vacancy.EmployerLocation.Postcode, vacancy.Id);

var geocodeService = _geocodeServiceFactory.GetGeocodeService();
Expand Down

0 comments on commit a900069

Please sign in to comment.