Change the logging to add thread info