diff --git a/Netkan/QueueAppender.cs b/Netkan/QueueAppender.cs index d9cd91a7b..ee9ddf994 100644 --- a/Netkan/QueueAppender.cs +++ b/Netkan/QueueAppender.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; + using log4net.Core; using log4net.Appender; @@ -10,9 +11,13 @@ public QueueAppender() { } protected override void Append(LoggingEvent evt) { - Warnings.Add(evt.RenderedMessage); + // Skip duplicate messages for better multi-kref handling + if (!Warnings.Contains(evt.RenderedMessage)) + { + Warnings.Add(evt.RenderedMessage); + } } - public List Warnings = new List(); + public readonly List Warnings = new List(); } }