Return empty log for 2 minutes after deploy time if unable to get logs from logserver
@@ -25,9 +25,9 @@ public class LogRetriever {
try {
return new ProxyResponse(httpClient.execute(get));
} catch (IOException e) {
- // It takes some time before nodes are up after first-time deployment, return empty log for up to 1 minute
+ // It takes some time before nodes are up after first-time deployment, return empty log for up to 2 minutes
// if getting logs fail
- if (deployTime.isPresent() && Instant.now().isBefore(deployTime.get().plus(Duration.ofMinutes(1))))
+ if (deployTime.isPresent() && Instant.now().isBefore(deployTime.get().plus(Duration.ofMinutes(2))))
return new HttpResponse(200) {
@Override
public void render(OutputStream outputStream) throws IOException {
