make code modify can save log.