LOG.error("Malformed URL", e);
throw new RuntimeException("Malformed URL.", e);
} catch (ExecutionException e) {
if (e.getCause() instanceof ConnectException) {
LOG.warn("Graylog2 server unavailable. Connection refused.");
target.markFailure();
throw new Graylog2ServerUnavailableException(e);
}
LOG.error("REST call failed", rootCause(e));
throw new APIException(request, e);
} catch (IOException e) {