Improve logging of ThreadLocals