Remove log.write, add continue

continue must be in for or while loop