update log1, log2