aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Logging/SimpleLogManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-08-19 18:54:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-08-19 18:54:05 -0400
commit1c7283791d134c0d579292916bb954babb3cb015 (patch)
tree04478fe89ac6e593be2046ee39f51c42d6e210ed /Emby.Server.Implementations/Logging/SimpleLogManager.cs
parenta02968c568c97da544b239014506a03ecca35c09 (diff)
update logging
Diffstat (limited to 'Emby.Server.Implementations/Logging/SimpleLogManager.cs')
-rw-r--r--Emby.Server.Implementations/Logging/SimpleLogManager.cs7
1 files changed, 0 insertions, 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);
}
}