From 366b72df0e78d9297a3f74c5931012ef37468fa4 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 21 May 2025 11:18:16 +0200 Subject: [PATCH] Assembler match: log level from Error to Information for missing config The log level was modified to better reflect the non-critical nature of the missing configuration scenario. This prevents unnecessary error logs while maintaining visibility through informational logs. --- .../Serialization/SourceGenerationContext.cs | 2 +- src/tooling/docs-assembler/Cli/ContentSourceCommands.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Elastic.Documentation/Serialization/SourceGenerationContext.cs b/src/Elastic.Documentation/Serialization/SourceGenerationContext.cs index 53e6b94d0..5e6426a4a 100644 --- a/src/Elastic.Documentation/Serialization/SourceGenerationContext.cs +++ b/src/Elastic.Documentation/Serialization/SourceGenerationContext.cs @@ -8,7 +8,7 @@ namespace Elastic.Documentation.Serialization; -// This configures the source generation for json (de)serialization. +// This configures the source generation for JSON (de)serialization. [JsonSourceGenerationOptions(WriteIndented = true, UseStringEnumConverter = true)] [JsonSerializable(typeof(GenerationState))] diff --git a/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs b/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs index 0e357857d..f8e0df118 100644 --- a/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs +++ b/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs @@ -57,7 +57,7 @@ public async Task Match([Argument] string? repository = null, [Argument] st var matches = assembleContext.Configuration.Match(repo, refName); if (matches == null) { - logger.LogError("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName); + logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName); await githubActionsService.SetOutputAsync("content-source-match", "false"); await githubActionsService.SetOutputAsync("content-source-name", ""); }