update log logic