diff --git a/Core/RequestLoggingMiddleware.cs b/Core/RequestLoggingMiddleware.cs index 7d24362..402c77e 100644 --- a/Core/RequestLoggingMiddleware.cs +++ b/Core/RequestLoggingMiddleware.cs @@ -71,7 +71,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Core { try { - var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + //var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + var apiPath = $"{_configuration["API"]}/org/dotnet/user-logs/{keycloakId}"; var apiKey = _configuration["API_KEY"] ?? ""; var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); @@ -253,7 +254,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Core { logType = logType, ip = context.Connection.RemoteIpAddress?.ToString(), - rootId = pf == null ? null : pf.RootId, + //rootId = pf == null ? null : pf.RootId, + rootId = pf == null ? null : pf.RootDnaId, systemName = SystemName, startTimeStamp = startTime.ToString("o"), endTimeStamp = endTime.ToString("o"),