Return response also when updating test log fails
@@ -433,9 +433,11 @@ class JobControllerApiHandlerHelper {
.orElseThrow(() -> new IllegalStateException("Unknown run '" + runId + "'"));
detailsObject.setBool("active", ! run.hasEnded());
detailsObject.setString("status", nameOf(run.status()));
+ try {
jobController.updateTestLog(runId);
- try { jobController.updateVespaLog(runId); }
- catch (RuntimeException ignored) { } // May be perfectly fine, e.g., when logserver isn't up yet.
+ jobController.updateVespaLog(runId);
+ }
+ catch (RuntimeException ignored) { } // Return response when this fails, which it does when, e.g., logserver is booting.
RunLog runLog = (after == null ? jobController.details(runId) : jobController.details(runId, Long.parseLong(after)))
.orElseThrow(() -> new NotExistsException(String.format(
