private void logErrorsRangeCheck(byte[] data) throws IOException {
        if (ProduceCSV.produceLog) {
            if (errorsRangeCheck.size() == 0) {
                return;
            }

            if (fileRangeCheckLog == null) {
                openRangeCheckLogFile();
            }

            fileRangeCheckLog.println("------");
            fileRangeCheckLog.println(parameterData.jobName);
            for (String error : errorsRangeCheck) {
                fileRangeCheckLog.println(error);
            }
            fileRangeCheckLog.println(new String(data));
            fileRangeCheckLog.flush();
        }
    }