From 1c7283791d134c0d579292916bb954babb3cb015 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 19 Aug 2017 18:54:05 -0400 Subject: [PATCH] update logging --- Emby.Server.Implementations/Logging/SimpleLogManager.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Emby.Server.Implementations/Logging/SimpleLogManager.cs b/Emby.Server.Implementations/Logging/SimpleLogManager.cs index a3de8e650..3a6992657 100644 --- a/Emby.Server.Implementations/Logging/SimpleLogManager.cs +++ b/Emby.Server.Implementations/Logging/SimpleLogManager.cs @@ -134,18 +134,11 @@ namespace Emby.Server.Implementations.Logging { try { - var any = false; - foreach (var message in _queue.GetConsumingEnumerable()) { var bytes = Encoding.UTF8.GetBytes(message + Environment.NewLine); _fileStream.Write(bytes, 0, bytes.Length); - any = true; - } - - if (any) - { _fileStream.Flush(true); } }