diff --git a/Program.cs b/Program.cs index 9b0d34a2..7c436d70 100644 --- a/Program.cs +++ b/Program.cs @@ -21,10 +21,7 @@ public static class Logger w.WriteLine($"{DateTime.Now}: {logMessage}"); w.Close(); } - } catch - { - - } + } catch { } if (new Random().Next(100) == 1) Cleanup(); @@ -33,9 +30,12 @@ public static class Logger public static void Cleanup() { - var file = File.ReadAllLines(logFile); - int skip = Math.Max(0, file.Count() - 500); - File.WriteAllLines(logFile,file.Skip(skip).ToArray()); + try + { + var file = File.ReadAllLines(logFile); + int skip = Math.Max(0, file.Count() - 500); + File.WriteAllLines(logFile, file.Skip(skip).ToArray()); + } catch { } } } diff --git a/screenshot.png b/screenshot.png index e003aa5c..8e926318 100644 Binary files a/screenshot.png and b/screenshot.png differ