Added thread id to logging so we can better debug.