diff --git a/src/api/Authentication/LegacyApiAuthenticationMiddleware.cs b/src/api/Authentication/LegacyApiAuthenticationMiddleware.cs index 27ecd2c7c..93247993c 100644 --- a/src/api/Authentication/LegacyApiAuthenticationMiddleware.cs +++ b/src/api/Authentication/LegacyApiAuthenticationMiddleware.cs @@ -22,7 +22,8 @@ public async Task InvokeAsync(HttpContext context, RequestDelegate next) await next.Invoke(context).ConfigureAwait(false); - logger.LogInformation("Authorized user with subject_id <{SubjectId}> for legacy api accessing route <{Route}>", subjectId.Value, context.Request.Path); + var route = context.Request.Path.ToString().ReplaceLineEndings(""); + logger.LogInformation("Authorized user with subject_id <{SubjectId}> for legacy api accessing route <{Route}>", subjectId.Value, route); return; } }