List<KafkaLogEvent> msgList = messageTable.get(key, loggingContext.getLogPathFragment());
if (msgList == null) {
msgList = Lists.newArrayList();
messageTable.put(key, loggingContext.getLogPathFragment(), msgList);
}
msgList.add(new KafkaLogEvent(genericRecord, event, loggingContext,
message.getTopicPartition().getPartition(), message.getNextOffset()));
}
} catch (Throwable e) {
LOG.warn("Exception while processing message with nextOffset {}. Skipping it.", message.getNextOffset(), e);
}