Group error logs together to help in multi-threaded case