update logging

This commit is contained in:
Luke Pulverenti 2017-08-19 18:54:05 -04:00
parent a02968c568
commit 1c7283791d

View File

@ -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);
}
}