use of com.facebook.buck.distributed.DistBuildStatus in project buck by facebook.
the class SuperConsoleEventBusListener method getDistBuildDebugInfo.
private void getDistBuildDebugInfo(ImmutableList.Builder<String> lines) {
// create a local reference to avoid inconsistencies
Optional<DistBuildStatus> distBuildStatus = this.distBuildStatus;
if (distBuildStatus.isPresent() && distBuildStatus.get().getLogBook().isPresent()) {
lines.add(ansi.asWarningText("Distributed build debug info:"));
for (LogRecord log : distBuildStatus.get().getLogBook().get()) {
String dateString = dateFormat.format(new Date(log.getTimestampMillis()));
lines.add(ansi.asWarningText(dateString + " " + log.getName()));
}
anyWarningsPrinted.set(true);
}
}
Aggregations