logFiles = new File[]{logFiles[0]};
}
final byte[] compressedLog = LogCompressUtils.compress(logFiles,
Charset.defaultCharset(), Charset.forName("UTF-8")
);
consoleCommunication.sendMessage(new LogReportGrinderMessage(testId, compressedLog, new AgentAddress(m_agentIdentity)));
// Delete logs to clean up
if (!agentConfig.getAgentProperties().getPropertyBoolean(PROP_AGENT_KEEP_LOGS)) {
LOGGER.info("Clean up the perftest logs");
FileUtils.deleteQuietly(logFolder);
}