ZeNyfh / gigavibe-java-edition

Music + Media bot made in java using JDA and Lavaplayer.
GNU General Public License v3.0
8 stars 3 forks source link

Log errors aren't perfectly timestamp formatted #158

Closed 9382 closed 3 months ago

9382 commented 3 months ago

Since the logs are done at a timer rate of 1 second, if multiple error messages are emitted during that second, only the first one actually has a timestamp attached to it since the entire buffer gets dumped at once. Ideally, a call to .print or .println the stream should either immediately add the timestamp there and then or immediately cause a file write, whichever is doable (and ideally the first since then its theoretically a few less file operations) image

ZeNyfh commented 3 months ago

@9382 said he'd look into this. The reason why I am commenting this is that I believe that a release can be made after this commit is done.

9382 commented 3 months ago

Solved by burning the entire existing system to the ground and remaking it