diff --git a/TramsDataApi/Controllers/V4/EstablishmentsController.cs b/TramsDataApi/Controllers/V4/EstablishmentsController.cs index 88593a7f..a7c7b932 100644 --- a/TramsDataApi/Controllers/V4/EstablishmentsController.cs +++ b/TramsDataApi/Controllers/V4/EstablishmentsController.cs @@ -2,6 +2,7 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; +using Azure.Core; using Dfe.Academies.Application.Establishment; using Dfe.Academies.Contracts.V4.Establishments; using Microsoft.AspNetCore.Mvc; @@ -98,14 +99,14 @@ public async Task> GetEstablishmentByUrn(string u public async Task>> SearchEstablishments(string name, string ukPrn, string urn, CancellationToken cancellationToken) { _logger.LogInformation( - "Searching for establishments by name \"{name}\", UKPRN \"{prn}\", urn \"{number}\"}", + "Searching for establishments by name \"{name}\", UKPRN \"{ukPrn}\", urn \"{number}\"", name, ukPrn, urn); var (establishments, recordCount) = await _establishmentQueries .Search(name, ukPrn, urn, cancellationToken).ConfigureAwait(false); _logger.LogInformation( - "Found {count} establishments for name \"{name}\", UKPRN \"{prn}\", urn \"{number}\"", + "Found {count} establishments for name \"{name}\", UKPRN \"{ukPrn}\", urn \"{number}\"", recordCount, name, ukPrn, urn); _logger.LogDebug(JsonSerializer.Serialize(establishments)); @@ -127,8 +128,8 @@ public async Task>> SearchEstablishments(str [SwaggerResponse(404, "No establishments found for specified regions.")] public async Task>> GetURNsByRegion([FromQuery] string[] regions, CancellationToken cancellationToken) { - _logger.LogInformation( - "Searching for establishment URNs by regions\"{regions}\"}", + _logger.LogInformation( + "Searching for establishment URNs by regions\"{regions}\"", regions); var establishmentURNs = await _establishmentQueries