Explorar o código

update logging

Luke Pulverenti %!s(int64=8) %!d(string=hai) anos
pai
achega
ae1a547837
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Emby.Server.Implementations/Logging/SimpleLogManager.cs

+ 2 - 2
Emby.Server.Implementations/Logging/SimpleLogManager.cs

@@ -112,7 +112,7 @@ namespace Emby.Server.Implementations.Logging
 
     public class FileLogger : IDisposable
     {
-        private readonly Stream _fileStream;
+        private readonly FileStream _fileStream;
 
         private bool _disposed;
         private readonly CancellationTokenSource _cancellationTokenSource;
@@ -146,7 +146,7 @@ namespace Emby.Server.Implementations.Logging
 
                     if (any)
                     {
-                        _fileStream.Flush();
+                        _fileStream.Flush(true);
                     }
                 }
                 catch