snoww / loa-logs

LOA Logs - Modern DPS Meter for Lost Ark
GNU General Public License v3.0
124 stars 24 forks source link

[Fix] Log panic errors to file before application termination #61

Closed yamiM0NSTER closed 5 months ago

yamiM0NSTER commented 5 months ago

Current code does not write panic messages to logs due to race condition which mostly/always is lost due to the nature of buffering logging before IO operation takes place thus panics end up not in file. Proposed solution should ensure that logger writes to file before application is terminated.