From 1fe3065f96d10cb6449a7a80215f725ed2495d89 Mon Sep 17 00:00:00 2001 From: Chris Cheetham Date: Tue, 13 Jul 2021 08:07:43 -0400 Subject: [PATCH] Logging tweaks --- src/InitializrApi/Configuration/UiConfigService.cs | 2 +- src/InitializrApi/Models/ProjectSpec.cs | 12 ++++++------ src/InitializrApi/appsettings.Staging.json | 5 ----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/InitializrApi/Configuration/UiConfigService.cs b/src/InitializrApi/Configuration/UiConfigService.cs index df3a850..6fc639d 100644 --- a/src/InitializrApi/Configuration/UiConfigService.cs +++ b/src/InitializrApi/Configuration/UiConfigService.cs @@ -32,7 +32,7 @@ namespace Steeltoe.InitializrApi.Configuration : base(logger) { UiConfig = configuration.Value; - Logger.LogInformation( + Logger.LogDebug( "Config Server: uri={ConfigServer},env={Environment},label={Label}", settings.Value.Uri, settings.Value.Env, diff --git a/src/InitializrApi/Models/ProjectSpec.cs b/src/InitializrApi/Models/ProjectSpec.cs index 7dc130f..5f0ad5d 100644 --- a/src/InitializrApi/Models/ProjectSpec.cs +++ b/src/InitializrApi/Models/ProjectSpec.cs @@ -81,37 +81,37 @@ namespace Steeltoe.InitializrApi.Models if (Namespace != null) { - buf.Append(delim).Append("app=").Append(Namespace); + buf.Append(delim).Append("namespace=").Append(Namespace); delim = ","; } if (Description != null) { - buf.Append(delim).Append("desc=").Append(Description); + buf.Append(delim).Append("description=").Append(Description); delim = ","; } if (SteeltoeVersion != null) { - buf.Append(delim).Append("steeltoe=").Append(SteeltoeVersion); + buf.Append(delim).Append("steeltoeVersion=").Append(SteeltoeVersion); delim = ","; } if (DotNetFramework != null) { - buf.Append(delim).Append("framework=").Append(DotNetFramework); + buf.Append(delim).Append("dotNetFramework=").Append(DotNetFramework); delim = ","; } if (Language != null) { - buf.Append(delim).Append("lang=").Append(Language); + buf.Append(delim).Append("language=").Append(Language); delim = ","; } if (Packaging != null) { - buf.Append(delim).Append("pkg=").Append(Packaging); + buf.Append(delim).Append("packaging=").Append(Packaging); } if (Dependencies != null) diff --git a/src/InitializrApi/appsettings.Staging.json b/src/InitializrApi/appsettings.Staging.json index ed23226..c325e6c 100644 --- a/src/InitializrApi/appsettings.Staging.json +++ b/src/InitializrApi/appsettings.Staging.json @@ -5,10 +5,5 @@ "label": "staging" } } - }, - "Logging": { - "LogLevel": { - "Steeltoe.InitializrApi": "Debug" - } } }