ImmutableMap<String, ImmutableMap<String, String>> exceptionDetails = ImmutableMap.of("exception", ImmutableMap.of(
"class", throwable.getClass().getName(),
"message", throwable.getMessage(),
"stackTrace", ExceptionUtils.getStackTrace(throwable)
));
QSLogModel logTick = new QSLogModel(task.taskId, workerIdService.getWorkerId(), task.handler, System.currentTimeMillis(), exceptionDetails);
if (LOG.isDebugEnabled()) {
LOG.debug("Task erred: {}", logTick, throwable);
} else {
LOG.info("Task erred: {}", logTick);
}