protected void handleResultOnFinish(OperationStatus operation, String finishMessage) { OperationResult result = operation.getResult(); result.recomputeStatus(); if (result.isAcceptable()) { log.info("{} in {}s. {}", finishMessage, NinjaUtils.DECIMAL_FORMAT.format(operation.getTotalTime()), operation.print()); } else { log.error("{} in {}s with some problems, reason: {}. {}", finishMessage, NinjaUtils.DECIMAL_FORMAT.format(operation.getTotalTime()), result.getMessage(), operation.print()); if (context.isVerbose()) { log.error("Full result\n{}", result.debugDumpLazily()); } } }