Fix log.sh