fix blocking when reading the log file, prepare log file download