boolean (@NotNull Logger logger) { int ec = getExitCode(); if (ec == 0 && !isTimeout()) { return true; } logger.info(isTimeout() ? "Timed out" : "Exit code " + ec); String output = getStderr(); if (output.isEmpty()) output = getStdout(); if (!output.isEmpty()) { logger.info(output); } return false; }