sapphonie / StAC-tf2

steph's anticheat (StAC). a built-from-scratch sourcemod based solution to cheating in Team Fortress 2.
https://sappho.io
GNU General Public License v3.0
120 stars 23 forks source link

Creates empty log file even if there is nothing to report #169

Open Dragonisser opened 1 year ago

Dragonisser commented 1 year ago

Not that it really matters since they are empty, but why create a log file if there is no content (except for one time).

image

sapphonie commented 1 year ago

This is a relic of me not wanting to deal with opening a file on every log. I should really just rewrite it at some point. PRs welcome though, it'd probably be a better idea to have a static variable that determines if we have an open log file or not