Exemple #1
0
 public LogEntry(String dagID, String contractID, ContractExecutionReport report) {
   this.dag_id = dagID;
   this.contract_id = contractID;
   this.log_message = report.getStatus().name();
   Throwable exception = report.getCause();
   this.error_reason =
       StringUtils.makeNullSafe((exception != null) ? exception.toString() : report.getReason());
   this.detailed_description =
       StringUtils.makeNullSafe(
           (exception != null)
               ? StringUtils.serializeToString(exception)
               : report.getDetailedDescription());
 }