TShock
TShock copied to clipboard
Lazy initialize TextLog._logWriter
There is an instance of this in SqlLog that's used as a backup, but since the StreamWriter is created in the constructor, the file is created too. This means that you'll get an empty text log created every time a server starts up, even if you have text logs disabled. This is especially problematic when you have a multi-server setup with file write conflicts.