add thread cid to log