save temp file when log is on