String logFileEntry = logFiles[i];
String[] logFileEntryParts = logFileEntry.split("\\s+");
if (logFileEntryParts.length != 2) {
continue;
}
Log log = new Log(appName, logFileEntryParts[0]);
log.setLocation(baseUri.resolve(log.getName()));
log.setSize(logFileEntryParts[1]);
logsJSON.put(log.toJSON());
}
} catch (Exception e) {
String msg = NLS.bind("An error occured when performing operation {0}", commandName); //$NON-NLS-1$
logger.error(msg, e);
return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);