log.debug("Found a TTransportException (%s) wrapped in a %s", te.getMessage(), t.getClass().getSimpleName());
}
if (te != null) {
final Duration now = Duration.nanosSince(startTime);
if (attempt > config.getMaxRetries() || now.compareTo(config.getRetryTimeout()) >= 0) {
log.warn("Failed executing %s (last host %s, attempt %s, elapsed time %s), Exception: %s (%s)",
apiName, currentHostAndPort.get(),
attempt, now.toString(TimeUnit.MILLISECONDS),
te.getClass().getSimpleName(), te.getMessage());