Skip to content

Commit

Permalink
Added additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
TTLC198 committed Dec 7, 2023
1 parent b79dc78 commit 4b4316e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HSMonitor/Utils/Logger/FileLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b4316e

Please sign in to comment.