update log condition