collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
869 stars 99 forks source link

Logging concurrently from multiple threads jumbles output #143

Open collinsmith opened 2 years ago

collinsmith commented 2 years ago

Writing log messages concurrently from multiple threads to stdout causes output messages to be mixed together. The mixing appears to happen at the bounds of conversion symbols.

Unsure if this is an issue with message pool not being properly safe and same object pulled multiple times or the message encoder may require it's string buffer to be ThreadLocal