From c4a46fbdde011ed5f98693f0786bb5db21ce6201 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 3 Jul 2022 01:22:02 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/NLog/Logging.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/NLog/Logging.cs b/ArchiSteamFarm/NLog/Logging.cs index 0f422c570..fd487601e 100644 --- a/ArchiSteamFarm/NLog/Logging.cs +++ b/ArchiSteamFarm/NLog/Logging.cs @@ -184,7 +184,8 @@ internal static class Logging { DeleteOldFileOnStartup = true, FileName = Path.Combine("${currentdir}", SharedInfo.LogFile), - // For GET /Api/NLog/File ASF API usage on Windows (sigh) + // Windows OS prevents other apps from reading file when actively holding exclusive (write) lock over it + // We require read access for GET /Api/NLog/File ASF API usage, therefore we shouldn't keep the lock all the time KeepFileOpen = !OperatingSystem.IsWindows(), Layout = GeneralLayout,