diff --git a/src/Microsoft.Tye.Hosting/Model/Service.cs b/src/Microsoft.Tye.Hosting/Model/Service.cs index 58e7cf0d..03862258 100644 --- a/src/Microsoft.Tye.Hosting/Model/Service.cs +++ b/src/Microsoft.Tye.Hosting/Model/Service.cs @@ -19,7 +19,7 @@ namespace Microsoft.Tye.Hosting.Model { if (CachedLogs.Count > 5000) { - CachedLogs.Dequeue(); + CachedLogs.TryDequeue(out _); } CachedLogs.Enqueue(entry); @@ -64,7 +64,7 @@ namespace Microsoft.Tye.Hosting.Model public Dictionary Items { get; } = new Dictionary(); - public Queue CachedLogs { get; } = new Queue(); + public ConcurrentQueue CachedLogs { get; } = new ConcurrentQueue(); public Subject Logs { get; } = new Subject();