Skip to content

Commit 50559ff

Browse files
authored
[APIPUB-76] - Adds Sonar Analyzer - log web api metadata as a json format. (#82)
1 parent c4cbd7c commit 50559ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/EdFi.Tools.ApiPublisher.Connections.Api/Metadata/Versioning/EdFiApiVersionMetadataProviderBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ JObject GetVersionObject(string versionJson)
4545
try
4646
{
4747
versionObject = JObject.Parse(versionJson);
48-
_logger.Information("{Role} version information: {VersionObject}",
49-
_role, versionObject.ToString(Formatting.Indented));
48+
var message = $"{_role} version information: {versionObject.ToString(Formatting.Indented)}";
49+
_logger.Information(message);
5050
}
5151
catch (Exception)
5252
{

0 commit comments

Comments
 (0)