Log threadId