Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs FHIR resource versions on Application startup #3633

Merged
merged 7 commits into from
Dec 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ public SystemConformanceProvider(
_urlResolver = urlResolver;
_contextAccessor = contextAccessor;
_searchParameterStatusManager = searchParameterStatusManager;

// Following code block will log same information multiple times due to Mediatr bug.
// Link for Mediatr bug https://github.com/jbogard/MediatR.Extensions.Microsoft.DependencyInjection/issues/34
mahajan-xor marked this conversation as resolved.
Show resolved Hide resolved
if (!string.IsNullOrEmpty(_configuration.Value.Versioning.Default))
{
_logger.LogInformation("Default version is:{VersioningDefault}.", _configuration.Value.Versioning.Default);

foreach (var resourcetype in _configuration.Value.Versioning.ResourceTypeOverrides)
{
_logger.LogInformation("{ResourceTypeKey} version overridden to:{ResourceTypeValue}.", resourcetype.Key, resourcetype.Value);
mahajan-xor marked this conversation as resolved.
Show resolved Hide resolved
}
}
}

public override async Task<ResourceElement> GetCapabilityStatementOnStartup(CancellationToken cancellationToken = default(CancellationToken))
Expand Down