check for log file before uploading