@SuppressWarnings("deprecation")
    public HttpResponse getLogs(HttpURL logServerUri, Optional<Instant> deployTime) {
        HttpGet get = new HttpGet(logServerUri.asURI());
        try {
            return new ProxyResponse(httpClient.execute(get));
        } catch (IOException e) {
            if (deployTime.isPresent() && Instant.now().isBefore(deployTime.get().plus(Duration.ofMinutes(5))))
                return new EmptyResponse();

            return new GatewayTimeoutResponse(504);
        }
    }
Fetches logs from the log server for a given application.
An empty response will be returned if we are unable to fetch logs and
the deployment is less than 5 minutes old
configserver/src/main/java/com/yahoo/vespa/config/server/http/LogRetriever.java