update log.sh