Improve logging

This commit is contained in:
Liza 2024-06-21 01:00:29 +02:00
parent 8227f9af43
commit 435bf77d53
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -410,7 +410,7 @@ internal sealed class QuestController
{
IList<ITask> 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))