Skip to content

Making the internal LogHandler threadsafe

Mateusz Brawański requested to merge github/fork/KoB-Kirito/master into master

Created by: KoB-Kirito

Summary

Using the internal log handler can cause log messages to overlap and create weird colors in console.

Details

Using a lock ensures that only one thread can access the Console at a time. No breaking changes.

Changes proposed

Added a lock object to the internal log class. Locking that object while Console is accessed.

Notes

The diff is quite ugly on this, but there were only 4 lines added. Is there any way to avoid this?

Merge request reports

Loading