Skip to content

Commit

Permalink
Prints a fallback message when no logging level is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Dec 22, 2022
1 parent 2b346c8 commit 57dd807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Statiq.Core/Execution/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public async Task<IPipelineOutputs> ExecuteAsync(string[] pipelines, bool normal
Logger.LogInformation($"Executing {ExecutingPipelines.Count} pipelines ({string.Join(", ", ExecutingPipelines.Keys.OrderBy(x => x))})");
Logger.LogInformation($"Absolute Execution Date/Time: {ExecutionDateTime.ToString("yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)}");
Logger.LogInformation($"Configured Current Date/Time: {this.GetCurrentDateTime().ToString("yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)}");
Logger.LogInformation($"Minimum Configured Log Level: {Services.GetRequiredService<IOptions<LoggerFilterOptions>>().Value.MinLevel.ToString()}");
Logger.LogInformation($"Minimum Configured Log Level: {Services.GetService<IOptions<LoggerFilterOptions>>()?.Value.MinLevel.ToString() ?? "Not Configured"}");
Logger.LogDebug($"Execution ID: {ExecutionId}");
Logger.LogDebug($"Clean mode: {FileCleaner.CleanMode}");

Expand Down

0 comments on commit 57dd807

Please sign in to comment.