private void logAndPrintMessage(ExecutionGraphMessages.JobStatusChanged message) { // by default, this only prints the status, and not any exception. // in state FAILING, we report the exception in addition if (message.newJobStatus() != JobStatus.FAILING || message.error() == null) { LOG.info(message.toString()); if (sysoutUpdates) { System.out.println(message.toString()); } } else { Throwable error = SerializedThrowable.get(message.error(), getClass().getClassLoader()); LOG.info(message.toString(), error); if (sysoutUpdates) { System.out.println(message.toString()); message.error().printStackTrace(System.out); } } }
private void logAndPrintMessage(ExecutionGraphMessages.JobStatusChanged message) { // by default, this only prints the status, and not any exception. // in state FAILING, we report the exception in addition if (message.newJobStatus() != JobStatus.FAILING || message.error() == null) { LOG.info(message.toString()); if (sysoutUpdates) { System.out.println(message.toString()); } } else { Throwable error = SerializedThrowable.get(message.error(), getClass().getClassLoader()); LOG.info(message.toString(), error); if (sysoutUpdates) { System.out.println(message.toString()); message.error().printStackTrace(System.out); } } }
private void logAndPrintMessage(ExecutionGraphMessages.JobStatusChanged message) { // by default, this only prints the status, and not any exception. // in state FAILING, we report the exception in addition if (message.newJobStatus() != JobStatus.FAILING || message.error() == null) { LOG.info(message.toString()); if (sysoutUpdates) { System.out.println(message.toString()); } } else { Throwable error = SerializedThrowable.get(message.error(), getClass().getClassLoader()); LOG.info(message.toString(), error); if (sysoutUpdates) { System.out.println(message.toString()); message.error().printStackTrace(System.out); } } }
private void logAndPrintMessage(ExecutionGraphMessages.JobStatusChanged message) { // by default, this only prints the status, and not any exception. // in state FAILING, we report the exception in addition if (message.newJobStatus() != JobStatus.FAILING || message.error() == null) { LOG.info(message.toString()); if (sysoutUpdates) { System.out.println(message.toString()); } } else { Throwable error = SerializedThrowable.get(message.error(), getClass().getClassLoader()); LOG.info(message.toString(), error); if (sysoutUpdates) { System.out.println(message.toString()); message.error().printStackTrace(System.out); } } }