Add log for printing thread information.