diff --git a/Core/bottypes/Log2FileBot.cs b/Core/bottypes/Log2FileBot.cs index b154555..494fa17 100644 --- a/Core/bottypes/Log2FileBot.cs +++ b/Core/bottypes/Log2FileBot.cs @@ -45,8 +45,15 @@ namespace BSB.bottypes Rotate(logFilePath); - using var sw = File.AppendText(logFilePath); - sw.WriteLine(message); + try + { + using var sw = File.AppendText(logFilePath); + sw.WriteLine(message); + } + catch + { + + } } private void Rotate(string filePath)