TShock icon indicating copy to clipboard operation
TShock copied to clipboard

Lazy initialize TextLog._logWriter

Open ZakFahey opened this issue 1 year ago • 0 comments

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.

ZakFahey avatar Feb 18 '24 19:02 ZakFahey