From 435bf77d5338a3b7b0bba8e169515353dd8a975c Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 21 Jun 2024 01:00:29 +0200 Subject: [PATCH] Improve logging --- Questionable/Controller/QuestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Questionable/Controller/QuestController.cs b/Questionable/Controller/QuestController.cs index 46adb25b..4ed4f59b 100644 --- a/Questionable/Controller/QuestController.cs +++ b/Questionable/Controller/QuestController.cs @@ -410,7 +410,7 @@ internal sealed class QuestController { IList tasks = x.CreateAllTasks(CurrentQuest.Quest, seq, step).ToList(); - if (_logger.IsEnabled(LogLevel.Trace)) + if (tasks.Count > 0 && _logger.IsEnabled(LogLevel.Trace)) { string factoryName = x.GetType().FullName ?? x.GetType().Name; if (factoryName.Contains('.', StringComparison.Ordinal))