Update log code