mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
update logging
This commit is contained in:
parent
a02968c568
commit
1c7283791d
1 changed files with 0 additions and 7 deletions
|
@ -134,18 +134,11 @@ namespace Emby.Server.Implementations.Logging
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var any = false;
|
|
||||||
|
|
||||||
foreach (var message in _queue.GetConsumingEnumerable())
|
foreach (var message in _queue.GetConsumingEnumerable())
|
||||||
{
|
{
|
||||||
var bytes = Encoding.UTF8.GetBytes(message + Environment.NewLine);
|
var bytes = Encoding.UTF8.GetBytes(message + Environment.NewLine);
|
||||||
_fileStream.Write(bytes, 0, bytes.Length);
|
_fileStream.Write(bytes, 0, bytes.Length);
|
||||||
|
|
||||||
any = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (any)
|
|
||||||
{
|
|
||||||
_fileStream.Flush(true);
|
_fileStream.Flush(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue