Log for prepare_dist