From: Liza Carvelli Date: Thu, 20 Jun 2024 23:00:29 +0000 (+0200) Subject: Improve logging X-Git-Tag: v1.0~9 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=435bf77d5338a3b7b0bba8e169515353dd8a975c;p=Questionable.git Improve logging --- 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))