Search in sources :

Example 1 with DistBuildStatus

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);
    }
}
Also used : LogRecord(com.facebook.buck.distributed.thrift.LogRecord) DistBuildStatus(com.facebook.buck.distributed.DistBuildStatus) Date(java.util.Date)

Aggregations

DistBuildStatus (com.facebook.buck.distributed.DistBuildStatus)1 LogRecord (com.facebook.buck.distributed.thrift.LogRecord)1 Date (java.util.Date)1