From 198c235765f1c439e4dc076625e31094ff325423 Mon Sep 17 00:00:00 2001 From: Pedro Rodrigues Date: Wed, 6 Sep 2017 22:19:32 +0100 Subject: [PATCH] Prevent log file writing when option is not set --- mRemoteV1/App/Logger.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mRemoteV1/App/Logger.cs b/mRemoteV1/App/Logger.cs index 3f2f0ace..dfb39892 100644 --- a/mRemoteV1/App/Logger.cs +++ b/mRemoteV1/App/Logger.cs @@ -45,6 +45,9 @@ namespace mRemoteNG.App private static string BuildLogFilePath() { + if (!Settings.Default.WriteLogFile) + return ""; + #if !PORTABLE var logFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Application.ProductName); #else