diff --git a/HSMonitor/Utils/Logger/FileLogger.cs b/HSMonitor/Utils/Logger/FileLogger.cs index 5e18a77..bd75f26 100644 --- a/HSMonitor/Utils/Logger/FileLogger.cs +++ b/HSMonitor/Utils/Logger/FileLogger.cs @@ -17,7 +17,8 @@ public FileLogger() _fullFilePath = Path.Combine(App.LogsDirPath, DateTime.Now.ToString("yyyy-MM-dd") + "_log.txt"); if (!Directory.Exists(App.LogsDirPath)) Directory.CreateDirectory(App.LogsDirPath); - DeleteOldLogFiles(); + else + DeleteOldLogFiles(); } public void Info(string format, params object[] args)