Update log logic