kstenerud / KSCrash

The Ultimate iOS Crash Reporter
MIT License
4.23k stars 705 forks source link

Write logs in the buffer first to ensure the order of log entries #508

Closed xuezhulian closed 2 months ago

xuezhulian commented 2 months ago

https://github.com/kstenerud/KSCrash/pull/479 caused this bug.

GLinnik21 commented 2 months ago

I've added some tests in #509 to make sure this fix works. I've disabled them to keep the tests green in master, so you'll need to revert this https://github.com/kstenerud/KSCrash/pull/509/commits/0283bd19ee37aaa0f50d69726ba66b90e80e1d87 commit to enable them again.

GLinnik21 commented 2 months ago

Thank you very much!