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
117 stars 21 forks source link

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

Open Dragonisser opened 10 months ago

Dragonisser commented 10 months 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 10 months 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