Skip to content

Commit ece1dea

Browse files
authored
Assembler match: log level from Error to Information for missing config (#1285)
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.
1 parent 755ba56 commit ece1dea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elastic.Documentation/Serialization/SourceGenerationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Elastic.Documentation.Serialization;
1010

11-
// This configures the source generation for json (de)serialization.
11+
// This configures the source generation for JSON (de)serialization.
1212

1313
[JsonSourceGenerationOptions(WriteIndented = true, UseStringEnumConverter = true)]
1414
[JsonSerializable(typeof(GenerationState))]

src/tooling/docs-assembler/Cli/ContentSourceCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
5757
var matches = assembleContext.Configuration.Match(repo, refName);
5858
if (matches == null)
5959
{
60-
logger.LogError("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
60+
logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
6161
await githubActionsService.SetOutputAsync("content-source-match", "false");
6262
await githubActionsService.SetOutputAsync("content-source-name", "");
6363
}

0 commit comments

Comments
 (0)